Fixed a bug where sockets would not be closed.
This commit is contained in:
parent
6720f7a5ae
commit
fbf09fd7c2
1 changed files with 1 additions and 1 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Reference in a new issue