From fbf09fd7c2a542d2945a5b7d9c6018dce98d193d Mon Sep 17 00:00:00 2001 From: Erik Zandvliet Date: Tue, 21 Jan 2014 12:34:55 +0100 Subject: [PATCH] Fixed a bug where sockets would not be closed. --- lib/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.cpp b/lib/socket.cpp index cc671985..6f8b37d6 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -516,7 +516,7 @@ unsigned int Socket::Connection::iwrite(const void * buffer, int len){ if ( !connected() || len < 1){ return 0; } - unsigned int r; + int r; if (sock >= 0){ r = send(sock, buffer, len, 0); }else{