mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-25 04:34:15 +00:00
fix core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@766 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
6ad4c8a9d5
commit
235466d196
2 files changed
+5
-22
No files matched your search
+4
-1
@@ -1621,7 +1621,9 @@ static void switch_core_standard_on_execute(switch_core_session *session)
|
||||
extension->current_application = extension->current_application->next;
|
||||
}
|
||||
|
||||
switch_channel_set_state(session->channel, CS_HANGUP);
|
||||
if (switch_channel_get_state(session->channel) == CS_EXECUTE) {
|
||||
switch_channel_set_state(session->channel, CS_HANGUP);
|
||||
}
|
||||
}
|
||||
|
||||
static void switch_core_standard_on_loopback(switch_core_session *session)
|
||||
@@ -1942,6 +1944,7 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session *session)
|
||||
if (state < CS_DONE && midstate == switch_channel_get_state(session->channel)) {
|
||||
switch_thread_cond_wait(session->cond, session->mutex);
|
||||
}
|
||||
|
||||
}
|
||||
session->thread_running = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user