Skip to content

Commit

Permalink
fix: Fixes reconnecting when there was no resumption. (jitsi#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho authored Dec 3, 2024
1 parent 98acfca commit dd2d778
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.jitsi.xmpp.util.*;
import org.jivesoftware.smack.*;
import org.jivesoftware.smack.packet.*;
import org.jivesoftware.smack.tcp.*;
import org.jxmpp.jid.*;

import java.lang.*;
Expand Down Expand Up @@ -162,6 +163,13 @@ synchronized public void registrationChanged(boolean registered)
this.reconnectTimeout = null;
}

AbstractXMPPConnection connection = xmppProvider.getXmppConnection();
if (connection instanceof XMPPTCPConnection && !((XMPPTCPConnection) connection).streamWasResumed())
{
// We are not resuming the stream, so we need to stop and start clean
stop();
}

maybeStart();
}
else
Expand Down

0 comments on commit dd2d778

Please sign in to comment.