mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-03 18:26:01 +00:00
Packet queuing on syncing
This commit is contained in:
@@ -69,6 +69,11 @@ TServer& TClient::Server() const {
|
||||
return mServer;
|
||||
}
|
||||
|
||||
void TClient::EnqueueMissedPacketDuringSyncing(const std::string& Packet){
|
||||
std::unique_lock Lock(mMissedPacketsMutex);
|
||||
mMissedPacketsDuringSyncing.push(Packet);
|
||||
}
|
||||
|
||||
TClient::TClient(TServer& Server)
|
||||
: mServer(Server)
|
||||
, mLastPingTime(std::chrono::high_resolution_clock::now()) {
|
||||
|
||||
Reference in New Issue
Block a user