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