Stasis: Use the correct return value

Return the correct value instead of always returning 0 when setting
internal status on unreal channels.

Reported by: Richard Mudgett
........

Merged revisions 420802 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@420803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kinsey Moore
2014-08-11 18:46:09 +00:00
parent 406dded64c
commit ccb2f94691

View File

@@ -1940,7 +1940,7 @@ int stasis_app_channel_unreal_set_internal(struct ast_channel *chan)
}
ao2_unlock(unreal_pvt);
ao2_ref(unreal_pvt, -1);
return 0;
return res;
}
int stasis_app_channel_set_internal(struct ast_channel *chan)