diff options
-rwxr-xr-x | channels/chan_h323.c | 2 | ||||
-rwxr-xr-x | channels/chan_mgcp.c | 2 | ||||
-rwxr-xr-x | channels/chan_sip.c | 2 | ||||
-rwxr-xr-x | channels/chan_skinny.c | 2 | ||||
-rwxr-xr-x | channels/chan_vofr.c | 2 | ||||
-rwxr-xr-x | channels/chan_zap.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 70761d883..afecf0f3d 100755 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1271,7 +1271,7 @@ static int restart_monitor(void) ast_log(LOG_WARNING, "Cannot kill myself\n"); return -1; } - if (monitor_thread && (monitor_thread != AST_PTHREADT_STOP)) { + if (monitor_thread && (monitor_thread != AST_PTHREADT_NULL)) { /* Wake up the thread */ pthread_kill(monitor_thread, SIGURG); } else { diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 1554b3365..f1fa9dec8 100755 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -2569,7 +2569,7 @@ static int restart_monitor(void) ast_log(LOG_WARNING, "Cannot kill myself\n"); return -1; } - if (monitor_thread) { + if (monitor_thread != AST_PTHREADT_NULL) { /* Wake up the thread */ pthread_kill(monitor_thread, SIGURG); } else { diff --git a/channels/chan_sip.c b/channels/chan_sip.c index bcf9ff9a2..7af447007 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5829,7 +5829,7 @@ static int restart_monitor(void) ast_log(LOG_WARNING, "Cannot kill myself\n"); return -1; } - if (monitor_thread) { + if (monitor_thread != AST_PTHREADT_NULL) { /* Wake up the thread */ pthread_kill(monitor_thread, SIGURG); } else { diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 0a01bdc57..cccb8429c 100755 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -2426,7 +2426,7 @@ static int restart_monitor(void) ast_log(LOG_WARNING, "Cannot kill myself\n"); return -1; } - if (monitor_thread) { + if (monitor_thread != AST_PTHREADT_NULL) { /* Wake up the thread */ pthread_kill(monitor_thread, SIGURG); } else { diff --git a/channels/chan_vofr.c b/channels/chan_vofr.c index 3d677bd3d..444701fd7 100755 --- a/channels/chan_vofr.c +++ b/channels/chan_vofr.c @@ -1008,7 +1008,7 @@ static int restart_monitor(void) ast_log(LOG_WARNING, "Cannot kill myself\n"); return -1; } - if (monitor_thread) { + if (monitor_thread != AST_PTHREADT_NULL) { /* Wake up the thread */ pthread_kill(monitor_thread, SIGURG); } else { diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 930a870fc..48675db0a 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -5182,7 +5182,7 @@ static int restart_monitor(void) ast_log(LOG_WARNING, "Cannot kill myself\n"); return -1; } - if (monitor_thread) { + if (monitor_thread != AST_PTHREADT_NULL) { /* Just signal it to be sure it wakes up */ #if 0 pthread_cancel(monitor_thread); |