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
1 changed files with 3 additions and 1 deletions

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 {