Fixed a bug where sockets would not be closed.

This commit is contained in:
Erik Zandvliet 2014-01-21 12:34:55 +01:00
parent 6720f7a5ae
commit fbf09fd7c2

View file

@ -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{