1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge pull request #1637 from profanity-im/fix-soh-regression

fix handling of connection errors
This commit is contained in:
Michael Vetter 2022-02-14 11:31:49 +01:00 committed by GitHub
commit 186a8b25a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -549,8 +549,6 @@ session_reconnect(gchar* altdomain, unsigned short altport)
{
reconnect.altdomain = altdomain;
reconnect.altport = altport;
assert(reconnect_timer == NULL);
reconnect_timer = g_timer_new();
}
static void
@ -583,7 +581,8 @@ _session_reconnect(void)
connection_connect(jid, saved_account.passwd, server, port, account->tls_policy, account->auth_policy);
free(jid);
account_free(account);
g_timer_start(reconnect_timer);
if (reconnect_timer)
g_timer_start(reconnect_timer);
}
static void