diff options
Diffstat (limited to 'apps/app_chanspy.c')
-rw-r--r-- | apps/app_chanspy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index ddec58967..299c58efc 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -208,9 +208,9 @@ static int start_spying(struct ast_channel *chan, struct ast_channel *spychan, s static void stop_spying(struct ast_channel *chan, struct ast_channel_spy *spy) { - /* If our status has changed, then the channel we're spying on is gone.... + /* If our status has changed to DONE, then the channel we're spying on is gone.... DON'T TOUCH IT!!! RUN AWAY!!! */ - if (spy->status != CHANSPY_RUNNING) + if (spy->status == CHANSPY_DONE) return; if (!chan) |