mod_rtmp: don't add data to the sendq if the connection's gone

This commit is contained in:
Mathieu Rene 2011-08-31 15:38:05 +02:00
parent 037f1f5a9b
commit 156776797a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
if (*len < orig_len) {
if (*len > 0 && *len < orig_len) {
if (rsession->state >= RS_DESTROY) {
return SWITCH_STATUS_FALSE;