1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 11:38:00 +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();
lastFeaturesReceived.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
initState();
closingStreamReceived.init();
streamId = null;
try {