fix internal state machine session yuckyness

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@598 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-02-13 17:37:10 +00:00
parent 1f820b1c1e
commit abde08febc
2 changed files with 14 additions and 9 deletions

View File

@@ -274,7 +274,7 @@ SWITCH_DECLARE(switch_channel_state) switch_channel_set_state(switch_channel *ch
return state;
}
if (last_state >= CS_HANGUP) {
if (last_state >= CS_HANGUP && state < last_state) {
return last_state;
}