mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
merge in some boost changes
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@511 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
@@ -675,6 +675,12 @@ zap_status_t zap_channel_set_state(zap_channel_t *zchan, zap_channel_state_t sta
|
||||
return ZAP_FAIL;
|
||||
}
|
||||
|
||||
if (zap_test_flag(zchan->span, ZAP_SPAN_SUSPENDED)) {
|
||||
if (state != ZAP_CHANNEL_STATE_RESTART && state != ZAP_CHANNEL_STATE_DOWN) {
|
||||
return ZAP_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (lock) {
|
||||
zap_mutex_lock(zchan->mutex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user