FS-5240: --resolve Please test

This commit is contained in:
William King committed 2013-05-02 23:57:50 -05:00
1 parent 784d5722fa
commit 17781cba1c
3 files changed
+40 -23

No files matched your search

+11 -1
View File
@@ -176,8 +176,16 @@ static switch_status_t rtmp_tcp_close(rtmp_session_t *rsession)
switch_mutex_unlock(io->mutex);
switch_socket_close(io_pvt->socket);
io_pvt->socket = NULL;
io_pvt->socket = NULL;
}
if ( io_pvt->sendq ) {
switch_buffer_destroy(&(io_pvt->sendq));
}
free(rsession->io_private);
rsession->io_private = NULL;
return SWITCH_STATUS_SUCCESS;
}
@@ -276,6 +284,8 @@ void *SWITCH_THREAD_FUNC rtmp_io_tcp_thread(switch_thread_t *thread, void *obj)
switch_socket_close(io_pvt->socket);
io_pvt->socket = NULL;
io->base.close(rsession);
rtmp_session_destroy(&rsession);
}