diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-12 17:32:19 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-12 17:32:19 +0000 |
commit | bec09a778033e17467bbd1625f641de94a9de240 (patch) | |
tree | de8a0c51c7b4b77f28504d5d043585d2b22fcb38 /channels | |
parent | 28b775e5488a1b527948ac406f998faa4037b26b (diff) |
fix monitor thread issue, even though commented out
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1983 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_mgcp.c | 2 |
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); |