aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-05 13:11:48 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-05 13:11:48 +0000
commit193d8403024a4a08107c4fbe13e73a5851d1d1d5 (patch)
treeae4ad97e0c13d7fae1953a2619b3400f5ebdeef0 /main/channel.c
parentb12595690c1ad9440ba2955c5e6bb40ce7f7b24b (diff)
(closes issue #10650)
Reported by: tacvbo Only print out that the spy was removed while holding the spy lock. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81492 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/channel.c b/main/channel.c
index 03fd68f82..eaa325d32 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1449,13 +1449,11 @@ static void spy_detach(struct ast_channel_spy *spy, struct ast_channel *chan)
/* Poke the spy if needed */
if (ast_test_flag(spy, CHANSPY_TRIGGER_MODE) != CHANSPY_TRIGGER_NONE)
ast_cond_signal(&spy->trigger);
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Spy %s removed from channel %s\n", spy->type, chan->name);
ast_mutex_unlock(&spy->lock);
}
- /* Print it out while we still have a lock so the structure can't go away (if signalled above) */
- if (option_debug)
- ast_log(LOG_DEBUG, "Spy %s removed from channel %s\n", spy->type, chan->name);
-
return;
}