mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 12:18:18 +00:00
Don't try to get the channel if the session is null.
This commit is contained in:
parent
233ea048c0
commit
37d2a34b04
@ -805,8 +805,10 @@ switch_status_t rtmp_session_destroy(rtmp_session_t **session)
|
||||
switch_hash_this(hi, &key, &keylen, &val);
|
||||
item = (rtmp_private_t *)val;
|
||||
|
||||
channel = switch_core_session_get_channel(item->session);
|
||||
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
||||
if ( item->session ) {
|
||||
channel = switch_core_session_get_channel(item->session);
|
||||
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
||||
}
|
||||
}
|
||||
switch_thread_rwlock_unlock((*session)->session_rwlock);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user