Debugger: Prevent infinite loop on dead socket.

If send() fails, abort instead of retrying forever.
This commit is contained in:
Unknown W. Brackets 2018-06-09 18:26:41 -07:00
parent 4232ef59b4
commit cd85dec01b

View File

@ -333,6 +333,8 @@ bool OutputSink::Flush(bool allowBlock) {
if (!allowBlock || !Block()) {
return false;
}
} else if (bytes < 0) {
return false;
}
}