From 8664522d1d08939963d0995a63f06645ab5f644d Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 17 Feb 2021 13:11:59 +0100 Subject: [PATCH] fix client kicked on connect because no initialization of some value that i forgot to initlialize because i literally need coffee and food rn fuck --- src/Client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.cpp b/src/Client.cpp index 435832a..32d8df6 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -68,7 +68,8 @@ TServer& TClient::Server() const { } TClient::TClient(TServer& Server) - : mServer(Server) { + : mServer(Server) + , mLastPingTime(std::chrono::high_resolution_clock::now()) { } void TClient::UpdatePingTime() {