mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 01:30:19 +00:00
Fixed lag meter getting stuck.
Also lag_sent in struct server should have always been an unsigned long. Fixes #749.
This commit is contained in:
@@ -286,12 +286,16 @@ lag_check (void)
|
||||
NULL, NULL, 0);
|
||||
if (prefs.hex_net_auto_reconnect)
|
||||
serv->auto_reconnect (serv, FALSE, -1);
|
||||
} else if (!serv->lag_sent)
|
||||
} else
|
||||
{
|
||||
snprintf (tbuf, sizeof (tbuf), "LAG%lu", tim);
|
||||
serv->p_ping (serv, "", tbuf);
|
||||
serv->lag_sent = tim;
|
||||
fe_set_lag (serv, -1);
|
||||
|
||||
if (!serv->lag_sent)
|
||||
{
|
||||
serv->lag_sent = tim;
|
||||
fe_set_lag (serv, -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
list = list->next;
|
||||
|
||||
Reference in New Issue
Block a user