From b30dfc99957fc641168acd48e44b39c1426ca4b5 Mon Sep 17 00:00:00 2001 From: yanmorin <yanmorin> Date: Tue, 18 Oct 2005 16:03:01 +0000 Subject: [PATCH] Oups, remove a loop when the socket disconnect --- src/gui/server/tcpstreampool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/server/tcpstreampool.cpp b/src/gui/server/tcpstreampool.cpp index 5d57957138..30f4de63dd 100644 --- a/src/gui/server/tcpstreampool.cpp +++ b/src/gui/server/tcpstreampool.cpp @@ -33,6 +33,8 @@ TCPStreamPool::run() { if (input != null && input[0]!=cr13) { _inputPool.push(input); } + // security check, since we are inside a loop + if (testCancel() || !good()) {break;} } if (_outputPool.pop(output, 2LU)) { _debug("TCPStreamPool send %s\n", output.c_str()); -- GitLab