fixes ast_transfer stall until hangup if called with a channel that doesn't support...
[asterisk/asterisk.git] / main / channel.c
index cb30e14..bb78c76 100644 (file)
@@ -4597,7 +4597,7 @@ int ast_transfer(struct ast_channel *chan, char *dest)
        }
        ast_channel_unlock(chan);
 
-       if (res < 0) {
+       if (res <= 0) {
                return res;
        }