mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Merge pull request #1637 from profanity-im/fix-soh-regression
fix handling of connection errors
This commit is contained in:
commit
186a8b25a0
@ -549,8 +549,6 @@ session_reconnect(gchar* altdomain, unsigned short altport)
|
|||||||
{
|
{
|
||||||
reconnect.altdomain = altdomain;
|
reconnect.altdomain = altdomain;
|
||||||
reconnect.altport = altport;
|
reconnect.altport = altport;
|
||||||
assert(reconnect_timer == NULL);
|
|
||||||
reconnect_timer = g_timer_new();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -583,6 +581,7 @@ _session_reconnect(void)
|
|||||||
connection_connect(jid, saved_account.passwd, server, port, account->tls_policy, account->auth_policy);
|
connection_connect(jid, saved_account.passwd, server, port, account->tls_policy, account->auth_policy);
|
||||||
free(jid);
|
free(jid);
|
||||||
account_free(account);
|
account_free(account);
|
||||||
|
if (reconnect_timer)
|
||||||
g_timer_start(reconnect_timer);
|
g_timer_start(reconnect_timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user