fix crash which could happen when closing an invalid socket

for some reason boost::asio doesn't account for this and lets us simply
die when/if this happens.
This commit is contained in:
Lion Kortlepel committed 2022-11-23 09:34:51 +01:00
1 parent 35b38f35bb
commit eaab5eaf30
2 files changed
+7

No files matched your search

+1
View File
@@ -127,6 +127,7 @@ private:
std::string mDID;
int mID = -1;
std::chrono::time_point<TimeType> mLastPingTime;
std::mutex mDisconnectMtx;
};
// Returns a valid client, or nullptr if no such client exists