mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +00:00
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:
@@ -1940,7 +1940,7 @@ int stasis_app_channel_unreal_set_internal(struct ast_channel *chan)
|
|||||||
}
|
}
|
||||||
ao2_unlock(unreal_pvt);
|
ao2_unlock(unreal_pvt);
|
||||||
ao2_ref(unreal_pvt, -1);
|
ao2_ref(unreal_pvt, -1);
|
||||||
return 0;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int stasis_app_channel_set_internal(struct ast_channel *chan)
|
int stasis_app_channel_set_internal(struct ast_channel *chan)
|
||||||
|
Reference in New Issue
Block a user