mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
skypopen: locking flags
This commit is contained in:
1 parent
01d0f1bd2a
commit
0499be4acd
2 files changed
+43
-3
No files matched your search
@@ -1904,7 +1904,9 @@ int inbound_channel_answered(private_t *tech_pvt)
|
||||
channel = switch_core_session_get_channel(session);
|
||||
|
||||
if (channel) {
|
||||
switch_mutex_lock(tech_pvt->flag_mutex);
|
||||
switch_set_flag(tech_pvt, TFLAG_IO);
|
||||
switch_mutex_unlock(tech_pvt->flag_mutex);
|
||||
} else {
|
||||
ERRORA("no channel\n", SKYPOPEN_P_LOG);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user