mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
mod_rtmp: don't add data to the sendq if the connection's gone
This commit is contained in:
parent
037f1f5a9b
commit
156776797a
@ -143,7 +143,7 @@ static switch_status_t rtmp_tcp_write(rtmp_session_t *rsession, const unsigned c
|
|||||||
|
|
||||||
status = switch_socket_send_nonblock(io_pvt->socket, (char*)buf, len);
|
status = switch_socket_send_nonblock(io_pvt->socket, (char*)buf, len);
|
||||||
|
|
||||||
if (*len < orig_len) {
|
if (*len > 0 && *len < orig_len) {
|
||||||
|
|
||||||
if (rsession->state >= RS_DESTROY) {
|
if (rsession->state >= RS_DESTROY) {
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user