summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-05-16 15:11:52 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-05-16 15:11:52 +0100
commit89078eb3b317b9e047547936575ad5e8f6ca7943 (patch)
tree08a257d64477749382cd77cf094c1bfe12e16a09 /src
parent26cefd0587a5ca092a7b4ee442c144eee9e19dc5 (diff)
Fix an issue where the lag meter would be stuck after a reconnect caused by a
ping timeout.
Diffstat (limited to 'src')
-rw-r--r--src/common/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/server.c b/src/common/server.c
index 26d9a7cb..45472e05 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -489,6 +489,7 @@ server_connected (server * serv)
 {
 	prefs.wait_on_exit = TRUE;
 	serv->ping_recv = time (0);
+	serv->lag_sent = 0;
 	serv->connected = TRUE;
 	set_nonblocking (serv->sok);
 	serv->iotag = fe_input_add (serv->sok, FIA_READ|FIA_EX, server_read, serv);