Clear the queue if we failed to sync it

This commit is contained in:
Anonymous-275 committed 2021-03-30 22:10:57 +03:00
1 parent ca24339c9a
commit 7ccc5a963a
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -304,6 +304,6 @@ void TServer::Apply(TClient& c, int VID, const std::string& pckt) {
void TServer::InsertClient(const std::shared_ptr<TClient>& NewClient) {
debug("inserting client (" + std::to_string(ClientCount()) + ")");
WriteLock Lock(mClientsMutex);
WriteLock Lock(mClientsMutex); //TODO why is there 30+ threads locked here
(void)mClients.insert(NewClient);
}