Seems the session wasn't coming to the hangup in a locked state.
This commit is contained in:
parent
1ff548f24c
commit
ce9bf959e9
|
@ -250,6 +250,7 @@ switch_status_t rtmp_on_hangup(switch_core_session_t *session)
|
||||||
rtmp_private_t *tech_pvt = NULL;
|
rtmp_private_t *tech_pvt = NULL;
|
||||||
rtmp_session_t *rsession = NULL;
|
rtmp_session_t *rsession = NULL;
|
||||||
|
|
||||||
|
switch_core_session_write_lock(session);
|
||||||
channel = switch_core_session_get_channel(session);
|
channel = switch_core_session_get_channel(session);
|
||||||
assert(channel != NULL);
|
assert(channel != NULL);
|
||||||
|
|
||||||
|
@ -299,6 +300,7 @@ switch_status_t rtmp_on_hangup(switch_core_session_t *session)
|
||||||
switch_thread_rwlock_unlock(rsession->rwlock);
|
switch_thread_rwlock_unlock(rsession->rwlock);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
switch_core_session_rwunlock(session);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue