Network reader should close if it has to exit
This commit is contained in:
+9
-2
@@ -866,12 +866,19 @@ public abstract class AbstractTeamspeakClientSocket
|
||||
while (isReading()) {
|
||||
try {
|
||||
readQueue.put(readPacket());
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
if (e instanceof InterruptedException) continue;
|
||||
|
||||
Ts3Debugging.debug("Problem reading packet", e);
|
||||
e.printStackTrace();
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
setState(ClientConnectionState.DISCONNECTED);
|
||||
} catch (Throwable e1) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user