mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
fix race condition when hangup happends after answer indication but before the session thread is started
This commit is contained in:
committed by
Sangoma Dev Box
parent
652d2fdfb3
commit
9096501ee4
@@ -92,7 +92,9 @@ typedef enum {
|
||||
SSF_NONE = 0,
|
||||
SSF_DESTROYED = (1 << 0),
|
||||
SSF_WARN_TRANSCODE = (1 << 1),
|
||||
SSF_HANGUP = (1 << 2)
|
||||
SSF_HANGUP = (1 << 2),
|
||||
SSF_THREAD_STARTED = (1 << 3),
|
||||
SSF_THREAD_RUNNING = (1 << 4)
|
||||
} switch_session_flag_t;
|
||||
|
||||
|
||||
@@ -103,7 +105,6 @@ struct switch_core_session {
|
||||
switch_endpoint_interface_t *endpoint_interface;
|
||||
switch_size_t id;
|
||||
switch_session_flag_t flags;
|
||||
int thread_running;
|
||||
switch_channel_t *channel;
|
||||
|
||||
switch_io_event_hooks_t event_hooks;
|
||||
|
||||
Reference in New Issue
Block a user