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

This commit is contained in:
dvhvsekhar 2021-07-04 10:12:45 +05:30 committed by GitHub
parent 3f5abd4433
commit 8584b46e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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) {