aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index f988c7c33..5e7ead08e 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -6932,14 +6932,8 @@ static int restart_monitor(void)
return -1;
}
if (monitor_thread != AST_PTHREADT_NULL) {
- /* Just signal it to be sure it wakes up */
-#if 0
- pthread_cancel(monitor_thread);
-#endif
+ /* Wake up the thread */
pthread_kill(monitor_thread, SIGURG);
-#if 0
- pthread_join(monitor_thread, NULL);
-#endif
} else {
/* Start a new monitor */
if (ast_pthread_create_background(&monitor_thread, &attr, do_monitor, NULL) < 0) {