I wanna shut allocated servers down if no players succeed to connect in 30 seconds. Currently, they stay online forever with 0 players on them. I also have servers that use standby mode so I don't want to close any server that is not an allocated server.
I already use photon bolt's player connection/disconnection methods so I handle if a player joins and then quits. The server will shut down in such a scenario. But if no players can connect, and the server is allocated to wait for them, it doesn't know what to do.
If the server is allocated by a matchmaking queue, then it should wait 30 seconds and quit if no players join. But if it's a standby server, it shouldn't have a timeout. Can you please help me?