diff options
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7f22b96c8..927f0aeae 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2512,7 +2512,7 @@ static void sip_threadinfo_destructor(void *obj) struct sip_threadinfo *th = obj; struct tcptls_packet *packet; - if (th->alert_pipe[1] > -1) { + if (th->alert_pipe[0] > -1) { close(th->alert_pipe[0]); } if (th->alert_pipe[1] > -1) { |