From 52ad9a7ddb80a7f8ad3287e2ccc5b924f7fb0d97 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Fri, 31 Mar 2023 15:53:11 +0200 Subject: [PATCH] fix(core): Reset the connection tracker when timing out --- packages/moxxmpp/lib/src/connection.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/moxxmpp/lib/src/connection.dart b/packages/moxxmpp/lib/src/connection.dart index 09d3366..1f1f673 100644 --- a/packages/moxxmpp/lib/src/connection.dart +++ b/packages/moxxmpp/lib/src/connection.dart @@ -600,6 +600,7 @@ class XmppConnection { /// Called when we timeout during connecting Future _onConnectingTimeout() async { _log.severe('Connection stuck in "connecting". Causing a reconnection...'); + await _resetIsConnectionRunning(); await handleError(TimeoutError()); }