mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-06 11:12:34 +01:00
Fix an issue where the lag meter would be stuck after a reconnect caused by a
ping timeout.
This commit is contained in:
parent
26cefd0587
commit
89078eb3b3
@ -489,6 +489,7 @@ server_connected (server * serv)
|
|||||||
{
|
{
|
||||||
prefs.wait_on_exit = TRUE;
|
prefs.wait_on_exit = TRUE;
|
||||||
serv->ping_recv = time (0);
|
serv->ping_recv = time (0);
|
||||||
|
serv->lag_sent = 0;
|
||||||
serv->connected = TRUE;
|
serv->connected = TRUE;
|
||||||
set_nonblocking (serv->sok);
|
set_nonblocking (serv->sok);
|
||||||
serv->iotag = fe_input_add (serv->sok, FIA_READ|FIA_EX, server_read, serv);
|
serv->iotag = fe_input_add (serv->sok, FIA_READ|FIA_EX, server_read, serv);
|
||||||
|
Loading…
Reference in New Issue
Block a user