Commit 8ab74c01 authored by Ian Craggs's avatar Ian Craggs

Fix for issue #20

parent 53b949d2
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* Contributors: * Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation * Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs, Allan Stockdill-Mander - SSL updates * Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs - fix for issue #244 * Ian Craggs - fix for issue #244, issue #20
*******************************************************************************/ *******************************************************************************/
/** /**
...@@ -133,6 +133,7 @@ void SocketBuffer_terminate(void) ...@@ -133,6 +133,7 @@ void SocketBuffer_terminate(void)
void SocketBuffer_cleanup(int socket) void SocketBuffer_cleanup(int socket)
{ {
FUNC_ENTRY; FUNC_ENTRY;
SocketBuffer_writeComplete(socket); /* clean up write buffers */
if (ListFindItem(queues, &socket, socketcompare)) if (ListFindItem(queues, &socket, socketcompare))
{ {
free(((socket_queue*)(queues->current->content))->buf); free(((socket_queue*)(queues->current->content))->buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment