Skip to content
Snippets Groups Projects
Commit b30dfc99 authored by yanmorin's avatar yanmorin
Browse files

Oups, remove a loop when the socket disconnect
parent 560b3517
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,8 @@ TCPStreamPool::run() { ...@@ -33,6 +33,8 @@ TCPStreamPool::run() {
if (input != null && input[0]!=cr13) { if (input != null && input[0]!=cr13) {
_inputPool.push(input); _inputPool.push(input);
} }
// security check, since we are inside a loop
if (testCancel() || !good()) {break;}
} }
if (_outputPool.pop(output, 2LU)) { if (_outputPool.pop(output, 2LU)) {
_debug("TCPStreamPool send %s\n", output.c_str()); _debug("TCPStreamPool send %s\n", output.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment