mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-28 07:07:58 +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:
parent
dd248adb28
commit
f3e93cef32
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue