[svn-commits] file: branch 1.4 r81492 - /branches/1.4/main/channel.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Sep 5 08:11:49 CDT 2007
Author: file
Date: Wed Sep 5 08:11:48 2007
New Revision: 81492
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81492
Log:
(closes issue #10650)
Reported by: tacvbo
Only print out that the spy was removed while holding the spy lock.
Modified:
branches/1.4/main/channel.c
Modified: branches/1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?view=diff&rev=81492&r1=81491&r2=81492
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Wed Sep 5 08:11:48 2007
@@ -1449,12 +1449,10 @@
/* 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;
}
More information about the svn-commits
mailing list