mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-15 16:52:07 +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();
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue