mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 14:26:09 +00:00
fix client insert/create issue
This commit is contained in:
committed by
Anonymous275
parent
b3256062f7
commit
bca4b3f140
@@ -269,3 +269,9 @@ void TServer::Apply(TClient& c, int VID, const std::string& pckt) {
|
||||
Veh.Accept(writer);
|
||||
c.SetCarData(VID, Header + Buffer.GetString());
|
||||
}
|
||||
|
||||
void TServer::InsertClient(std::shared_ptr<TClient> NewClient) {
|
||||
debug("inserting client (" + std::to_string(ClientCount()) + ")");
|
||||
WriteLock Lock(mClientsMutex);
|
||||
(void)mClients.insert(NewClient);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user