Skip to content

Commit

Permalink
squash: Bump smack version and fix error already connected.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Dec 5, 2024
1 parent c0b74eb commit 216dd3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
16 changes: 3 additions & 13 deletions jicoco/src/main/java/org/jitsi/xmpp/mucclient/MucClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,10 @@ public void reconnectionFailed(Exception e)
// too quickly and prosody is not fully up ('invalid-namespace' error)
if (MucClient.this.connectRetry != null && xmppConnection.isConnected())
{
try
{
xmppConnection.disconnect();
}
catch(Exception ex)
{
logger.error("Error disconnecting xmpp connection", ex);
}
xmppConnection.instantShutdown();

MucClient.this.connectRetry.runRetryingTask(
new SimpleRetryTask(0, 1000, true, getConnectAndLoginCallable()));
new SimpleRetryTask(0, 2000, true, getConnectAndLoginCallable()));
}
}
};
Expand Down Expand Up @@ -693,10 +686,7 @@ private Callable<Boolean> getConnectAndLoginCallable()
{
try
{
if (!xmppConnection.isConnected())
{
xmppConnection.connect();
}
xmppConnection.connect();
}
catch(Exception t)
{
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<jersey.version>3.0.10</jersey.version>
<jwt.version>0.12.6</jwt.version>
<bouncycastle.version>1.78.1</bouncycastle.version>
<smack.version>4.4.6</smack.version>
<smack.version>4.4.8</smack.version>
</properties>

<dependencyManagement>
Expand Down

0 comments on commit 216dd3a

Please sign in to comment.