Checking config.maxPlayers when restoring connection

This commit is contained in:
Rodrigo Alfonso
2025-01-04 06:54:43 -03:00
parent dc97649efb
commit cae4f588cd

View File

@@ -321,7 +321,8 @@ class LinkWireless {
stopTimer();
startTimer();
if (!linkRawWireless->restoreExistingConnection()) {
if (!linkRawWireless->restoreExistingConnection() ||
linkRawWireless->sessionState.playerCount > config.maxPlayers) {
deactivate();
return false;
}