fix(core): Reset the connection tracker when timing out
This commit is contained in:
parent
ac5e0c13b7
commit
52ad9a7ddb
@ -600,6 +600,7 @@ class XmppConnection {
|
|||||||
/// Called when we timeout during connecting
|
/// Called when we timeout during connecting
|
||||||
Future<void> _onConnectingTimeout() async {
|
Future<void> _onConnectingTimeout() async {
|
||||||
_log.severe('Connection stuck in "connecting". Causing a reconnection...');
|
_log.severe('Connection stuck in "connecting". Causing a reconnection...');
|
||||||
|
await _resetIsConnectionRunning();
|
||||||
await handleError(TimeoutError());
|
await handleError(TimeoutError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user