mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-07-12 17:54:04 +00:00
fix spammy logs on guard release
This commit is contained in:
@@ -70,12 +70,9 @@ TConnectionLimiter::TGuard& TConnectionLimiter::TGuard::operator=(TGuard&& other
|
||||
}
|
||||
|
||||
void TConnectionLimiter::TGuard::Release() {
|
||||
beammp_debugf("Trying to release connection guard for {} ...", mIp);
|
||||
if (mOwner) {
|
||||
mOwner->Release(mIp);
|
||||
mOwner = nullptr;
|
||||
beammp_debugf("... Released connection guard for {}", mIp);
|
||||
} else {
|
||||
beammp_debugf("... Connection guard for {} was already released (nothing happened)", mIp);
|
||||
beammp_debugf("Released connection guard for {}", mIp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user