dect
/
asterisk
Archived
13
0
Fork 0

removed #if 0 block from chan_zap restart_monitor()

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61784 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
dhubbard 2007-04-24 19:08:28 +00:00
parent e3343b3289
commit 73d01d3d21
1 changed files with 1 additions and 7 deletions

View File

@ -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) {