1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-24 23:32:05 +01:00

core: do not init() closingStreamReceived sync point in initState()

The initState() method is also called in disconnect(). And if we reset
the closingStreamReceived sync point at disconnect, it will break the
WaitForClosingStreamElementTest integration test.
This commit is contained in:
Florian Schmaus 2020-04-13 22:50:02 +02:00
parent dd248adb28
commit f3e93cef32

View file

@ -527,7 +527,8 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
saslFeatureReceived.init(); saslFeatureReceived.init();
lastFeaturesReceived.init(); lastFeaturesReceived.init();
tlsHandled.init(); tlsHandled.init();
closingStreamReceived.init(); // TODO: We do not init() closingStreamReceived here, as the integration tests use it to check if we waited for
// it.
} }
/** /**
@ -549,6 +550,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
// Reset the connection state // Reset the connection state
initState(); initState();
closingStreamReceived.init();
streamId = null; streamId = null;
try { try {