Fixed error causing client to hang until remote host closed the connection
This commit is contained in:
parent
e93f1e7a95
commit
84c0c62f5e
@ -185,11 +185,11 @@ namespace IO {
|
|||||||
}
|
}
|
||||||
bool NetClient::isEncrypted() { return encrypted; }
|
bool NetClient::isEncrypted() { return encrypted; }
|
||||||
void NetClient::update() {
|
void NetClient::update() {
|
||||||
if (!connected(_socket)) {
|
/*if (!connected(_socket)) { // Check this later...
|
||||||
_open = false;
|
_open = false;
|
||||||
close();
|
close();
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
int iResult = 0, rdErr;
|
int iResult = 0, rdErr;
|
||||||
unsigned long rCount;
|
unsigned long rCount;
|
||||||
rdErr = ioctlsocket(_socket, FIONREAD, &rCount);
|
rdErr = ioctlsocket(_socket, FIONREAD, &rCount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user