fix spammy logs on guard release

This commit is contained in:
Lion Kortlepel
2026-04-08 18:37:58 +02:00
parent 0ac5da2366
commit be6f3a2fd1
+1 -4
View File
@@ -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);
}
}