1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-18 02:02:04 +01:00

Do not use waitForConditionOrConnectionException() in XMPPTCPConnection

Since at this point, there will potentially be an active connection
exception, which would cause the call to return immediately.
This commit is contained in:
Florian Schmaus 2020-06-17 20:29:21 +02:00
parent ddc39030d7
commit a05b464032

View file

@ -518,7 +518,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
setWasAuthenticated();
try {
boolean readerAndWriterThreadsTermianted = waitForConditionOrConnectionException(() -> !packetWriter.running && !packetReader.running);
boolean readerAndWriterThreadsTermianted = waitFor(() -> !packetWriter.running && !packetReader.running);
if (!readerAndWriterThreadsTermianted) {
LOGGER.severe("Reader and/or writer threads did not terminate timely. Writer running: "
+ packetWriter.running + ", Reader running: " + packetReader.running);