summaryrefslogtreecommitdiff
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
authorJeremy McNamara <jj@nufone.net>2004-01-12 17:32:19 +0000
committerJeremy McNamara <jj@nufone.net>2004-01-12 17:32:19 +0000
commita39f993cd44cee0b673a72da8bbce6fb1edf4a09 (patch)
treede8a0c51c7b4b77f28504d5d043585d2b22fcb38 /channels/chan_mgcp.c
parent9e1bae7baddfb5beae0482377b50b81fba170e3f (diff)
fix monitor thread issue, even though commented out
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_mgcp.c')
-rwxr-xr-xchannels/chan_mgcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index a3efad58a..38a5483ed 100755
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -3043,7 +3043,7 @@ int unload_module()
return -1;
}
if (!ast_mutex_lock(&monlock)) {
- if (monitor_thread) {
+ if (monitor_thread && (monitor_thread != -2)) {
pthread_cancel(monitor_thread);
pthread_kill(monitor_thread, SIGURG);
pthread_join(monitor_thread, NULL);