summary refs log tree commit diff stats
path: root/src/common/server.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-05-22 17:17:28 -0700
committerTingPing <tngpng@gmail.com>2013-05-22 17:17:28 -0700
commitfcdd85ae5e7d69a1890c81a4789423f5bbfb72ae (patch)
treee8aa71f67210bc5f022cad97c40692ab623ab832 /src/common/server.c
parentfd71bb768a78db496df9f166ab78def463506158 (diff)
parent89078eb3b317b9e047547936575ad5e8f6ca7943 (diff)
Merge pull request #603 from orium/lag-meter-stuck
Fix an issue where the lag meter could get stuck after reconnect
Diffstat (limited to 'src/common/server.c')
-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 9b71d53d..3f7027e2 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);