[Freeswitch-svn] [commit] r13965 - freeswitch/trunk/src
FreeSWITCH SVN
anthm at freeswitch.org
Thu Jun 25 12:50:00 PDT 2009
Author: anthm
Date: Thu Jun 25 14:50:00 2009
New Revision: 13965
Log:
make session.ready work on uninit session containers
Modified:
freeswitch/trunk/src/switch_cpp.cpp
Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp (original)
+++ freeswitch/trunk/src/switch_cpp.cpp Thu Jun 25 14:50:00 2009
@@ -874,7 +874,12 @@
SWITCH_DECLARE(bool) CoreSession::ready() {
this_check(false);
- sanity_check(false);
+
+ if (!session) {
+ return false;
+ }
+ sanity_check(false);
+
return switch_channel_ready(channel) != 0;
}
More information about the Freeswitch-svn
mailing list