mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 20:19:02 -04:00
Mark ping answered when we get a two form reply
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9378 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
6e1c5865b7
commit
134cff821e
@ -72,6 +72,7 @@ bool TreeSocket::LocalPong(const std::string &prefix, std::deque<std::string> &p
|
||||
gettimeofday(&t, NULL);
|
||||
long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
|
||||
ServerSource->rtt = ts - ServerSource->LastPingMsec;
|
||||
ServerSource->SetPingFlag();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user