always initialize ping timer

This commit is contained in:
Lion Kortlepel 2024-05-11 12:44:41 +02:00
parent 9f47978f0f
commit fcd408970b
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -128,7 +128,7 @@ private:
std::string mRole;
std::string mDID;
int mID = -1;
std::chrono::time_point<std::chrono::high_resolution_clock> mLastPingTime;
std::chrono::time_point<std::chrono::high_resolution_clock> mLastPingTime = std::chrono::high_resolution_clock::now();
};
std::optional<std::weak_ptr<TClient>> GetClient(class TServer& Server, int ID);