Stop anyway if the thread is interrupted
This commit is contained in:
parent
4fa1f94f6b
commit
7ed2df1f4f
@ -65,7 +65,7 @@ public final class ResponseReceiver extends Thread implements AutoCloseable {
|
||||
public void run() {
|
||||
int[] sortIndex;
|
||||
try {
|
||||
while ((!Thread.interrupted() && !closeCalled.get() && !jvmShutdown.get()) || !registeredClients.isEmpty()) {
|
||||
while (!Thread.interrupted() && ((!closeCalled.get() && !jvmShutdown.get()) || !registeredClients.isEmpty())) {
|
||||
int resultsCount = NativeClientAccess.receive(clientIds, eventIds, events, 2.0 /*seconds*/);
|
||||
|
||||
if (resultsCount <= 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user