mirror of
https://github.com/znc/znc.git
synced 2026-07-02 07:51:26 +02:00
Add PING_TIMEOUT constant to CIRCNetwork
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ protected:
|
||||
for (size_t c = 0; c < vUserClients.size(); ++c) {
|
||||
CClient* pUserClient = vUserClients[c];
|
||||
|
||||
if (pUserClient->GetTimeSinceLastDataTransaction() >= 270) {
|
||||
if (pUserClient->GetTimeSinceLastDataTransaction() >= CIRCNetwork::PING_TIMEOUT) {
|
||||
pUserClient->PutClient("PING :ZNC");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user