diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-13 00:40:33 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-13 00:40:33 +0000 |
commit | 3a27761b486ce06b9ca01dbf5c779a39fbe627fc (patch) | |
tree | 5da9a9dfc4d1d9038bdb5952cc0e226db2f810de /channels | |
parent | 779fef4eb7172741971459d3de387ffe1b618e40 (diff) |
Fix monitor thread issue.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1995 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_skinny.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 49d99a8cb..2c5f8d931 100755 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -1899,7 +1899,7 @@ static int handle_message(skinny_req *req, struct skinnysession *s) break; case STIMULUS_TRANSFER: if (skinnydebug) { - printf("Recieved Stimulus: Transfer(%d)", stimulusInstance); + printf("Recieved Stimulus: Transfer(%d)\n", stimulusInstance); } transmit_tone(s, SKINNY_DIALTONE); @@ -2736,7 +2736,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); |