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()) {
|
while (isReading()) {
|
||||||
try {
|
try {
|
||||||
readQueue.put(readPacket());
|
readQueue.put(readPacket());
|
||||||
} catch (Exception e) {
|
} catch (Throwable e) {
|
||||||
if (e instanceof InterruptedException) continue;
|
if (e instanceof InterruptedException) continue;
|
||||||
|
|
||||||
Ts3Debugging.debug("Problem reading packet", e);
|
e.printStackTrace();
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
setState(ClientConnectionState.DISCONNECTED);
|
||||||
|
} catch (Throwable e1) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ public class ServerConnectionTest {
|
|||||||
|
|
||||||
client.subscribeAll();
|
client.subscribeAll();
|
||||||
|
|
||||||
client.waitForState(ClientConnectionState.DISCONNECTED, 10000L);
|
client.waitForState(ClientConnectionState.DISCONNECTED, 100000000L);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user