Leave read loop on broken pipe
This commit is contained in:
parent
0d8bf77a45
commit
7ee8407922
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ std::wstring Socket::read(int timeout){
|
||||||
if (err == ERROR_BROKEN_PIPE){
|
if (err == ERROR_BROKEN_PIPE){
|
||||||
debuglog(222, "Got an error, close this socket");
|
debuglog(222, "Got an error, close this socket");
|
||||||
d->connected = false;
|
d->connected = false;
|
||||||
|
break; //TODO is this correct?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
returnString.append(buf);
|
returnString.append(buf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue