summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 06217779e..0d8bb2550 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -28902,7 +28902,7 @@ static int restart_monitor(void)
ast_log(LOG_WARNING, "Cannot kill myself\n");
return -1;
}
- if (monitor_thread != AST_PTHREADT_NULL) {
+ if (monitor_thread != AST_PTHREADT_NULL && monitor_thread != AST_PTHREADT_STOP) {
/* Wake up the thread */
pthread_kill(monitor_thread, SIGURG);
} else {