diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 43dc6afe63..f132cdda44 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -28915,7 +28915,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 {