Remove Unknown Player OOM Kick False Positives (#3170)
This commit is contained in:
parent
c180694199
commit
860a466f82
@ -240,14 +240,14 @@ namespace big
|
|||||||
case rage::eNetMessage::MsgScriptMigrateHost: return true;
|
case rage::eNetMessage::MsgScriptMigrateHost: return true;
|
||||||
case rage::eNetMessage::MsgRadioStationSyncRequest:
|
case rage::eNetMessage::MsgRadioStationSyncRequest:
|
||||||
{
|
{
|
||||||
static rate_limiter unk_player_radio_requests{2s, 2};
|
static rate_limiter unk_player_radio_requests{1s, 6};
|
||||||
|
|
||||||
if (unk_player_radio_requests.process())
|
if (unk_player_radio_requests.process())
|
||||||
{
|
{
|
||||||
if (unk_player_radio_requests.exceeded_last_process())
|
if (unk_player_radio_requests.exceeded_last_process())
|
||||||
{
|
{
|
||||||
// Make a translation for this new OOM kick protection
|
// Make a translation for this new OOM kick protection
|
||||||
g_notification_service.push_error("PROTECTIONS"_T.data(), "OOM_KICK"_T.data());
|
g_notification_service.push_error("PROTECTIONS"_T.data(), "OOM_KICK_UNK"_T.data());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user