summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>2007-04-24 19:08:28 +0000
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>2007-04-24 19:08:28 +0000
commitf3ab33014a4f415c4f4ed5192bc6c87f435873eb (patch)
tree0eccfcfc386ed35d88cf5a62fe7dfccdb77e7aea /channels/chan_zap.c
parent94459660a339ae832eb25948ea16598d9e1a3142 (diff)
removed #if 0 block from chan_zap restart_monitor()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 1563f6aa5..acafe2d6b 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -7308,14 +7308,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) {