summary refs log tree commit diff stats
path: root/src/common/hexchat.c
diff options
context:
space:
mode:
authorTingPing <TingPing@users.noreply.github.com>2014-02-04 17:29:27 -0800
committerTingPing <TingPing@users.noreply.github.com>2014-02-04 17:29:27 -0800
commit29e01daeae94281d5c21aba01dae9123f6aa34d5 (patch)
tree9660121007954778aa804a78206c5b4b8445b33e /src/common/hexchat.c
parent9f01950bcbc85f8b3960724b6df77c3e9c111601 (diff)
parent9969282c72f838004fe3d75f06db48072b0fbfeb (diff)
Merge pull request #890 from orium/lagmeter-fixes
Lagmeter fixes
Diffstat (limited to 'src/common/hexchat.c')
-rw-r--r--src/common/hexchat.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/common/hexchat.c b/src/common/hexchat.c
index d44fa2f4..07f91cfb 100644
--- a/src/common/hexchat.c
+++ b/src/common/hexchat.c
@@ -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;