Leave read loop on broken pipe

This commit is contained in:
Stefan Persson 2012-09-03 17:00:17 +02:00
parent 0d8bf77a45
commit 7ee8407922

View file

@ -133,6 +133,7 @@ std::wstring Socket::read(int timeout){
if (err == ERROR_BROKEN_PIPE){
debuglog(222, "Got an error, close this socket");
d->connected = false;
break; //TODO is this correct?
}
}
returnString.append(buf);