File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ class TClient final {
128
128
std::string mRole ;
129
129
std::string mDID ;
130
130
int mID = -1 ;
131
- std::chrono::time_point<std::chrono::high_resolution_clock> mLastPingTime ;
131
+ std::chrono::time_point<std::chrono::high_resolution_clock> mLastPingTime = std::chrono::high_resolution_clock::now() ;
132
132
};
133
133
134
134
std::optional<std::weak_ptr<TClient>> GetClient (class TServer & Server, int ID);
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ void TPPSMonitor::operator()() {
76
76
return true ;
77
77
});
78
78
for (auto & ClientToKick : TimedOutClients) {
79
- Network (). ClientKick (* ClientToKick, " Timeout (no ping for way too long) " );
79
+ ClientToKick-> Disconnect ( " Timeout" );
80
80
}
81
81
TimedOutClients.clear ();
82
82
if (C == 0 || mInternalPPS == 0 ) {
You can’t perform that action at this time.
0 commit comments