fix(core): Reset the connection tracker when timing out

This commit is contained in:
PapaTutuWawa 2023-03-31 15:53:11 +02:00
parent ac5e0c13b7
commit 52ad9a7ddb

View File

@ -600,6 +600,7 @@ class XmppConnection {
/// Called when we timeout during connecting
Future<void> _onConnectingTimeout() async {
_log.severe('Connection stuck in "connecting". Causing a reconnection...');
await _resetIsConnectionRunning();
await handleError(TimeoutError());
}