AMQ-8304: Added a check with !isStopping() also before attempting to read input stream (#672)

(cherry picked from commit 8584b46e762b720d6c6fb27fd2124f0e59cef19c)
This commit is contained in:
dvhvsekhar 2021-07-04 10:12:45 +05:30 committed by jbonofre
parent dc786edecc
commit f942276c30

View File

@ -211,7 +211,7 @@ public class TcpTransport extends TransportThreadSupport implements Transport, S
LOG.trace("TCP consumer thread for " + this + " starting");
this.runnerThread=Thread.currentThread();
try {
while (!isStopped()) {
while (!isStopped() && !isStopping()) {
doRun();
}
} catch (IOException e) {