mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-22 11:53:16 +00:00
make session.ready work on uninit session containers
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13965 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
002e97848c
commit
83ebebc52b
@ -874,7 +874,12 @@ SWITCH_DECLARE(int) CoreSession::sleep(int ms, int sync) {
|
|||||||
SWITCH_DECLARE(bool) CoreSession::ready() {
|
SWITCH_DECLARE(bool) CoreSession::ready() {
|
||||||
|
|
||||||
this_check(false);
|
this_check(false);
|
||||||
|
|
||||||
|
if (!session) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
sanity_check(false);
|
sanity_check(false);
|
||||||
|
|
||||||
return switch_channel_ready(channel) != 0;
|
return switch_channel_ready(channel) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user