mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +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:
parent
ddc39030d7
commit
a05b464032
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
||||||
setWasAuthenticated();
|
setWasAuthenticated();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
boolean readerAndWriterThreadsTermianted = waitForConditionOrConnectionException(() -> !packetWriter.running && !packetReader.running);
|
boolean readerAndWriterThreadsTermianted = waitFor(() -> !packetWriter.running && !packetReader.running);
|
||||||
if (!readerAndWriterThreadsTermianted) {
|
if (!readerAndWriterThreadsTermianted) {
|
||||||
LOGGER.severe("Reader and/or writer threads did not terminate timely. Writer running: "
|
LOGGER.severe("Reader and/or writer threads did not terminate timely. Writer running: "
|
||||||
+ packetWriter.running + ", Reader running: " + packetReader.running);
|
+ packetWriter.running + ", Reader running: " + packetReader.running);
|
||||||
|
|
Loading…
Reference in a new issue