From fcd408970be04547bc3c341da1fca9e36ff824e4 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sat, 11 May 2024 12:44:41 +0200 Subject: [PATCH] always initialize ping timer --- include/Client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Client.h b/include/Client.h index 63f0316..898a0a9 100644 --- a/include/Client.h +++ b/include/Client.h @@ -128,7 +128,7 @@ private: std::string mRole; std::string mDID; int mID = -1; - std::chrono::time_point mLastPingTime; + std::chrono::time_point mLastPingTime = std::chrono::high_resolution_clock::now(); }; std::optional> GetClient(class TServer& Server, int ID);