SoftwareGuy / NodeListServer

Node List Server is a multi-purpose server list system. NodeJS powered and supports Docker.
Other
92 stars 33 forks source link

Auto remove servers after time #17

Closed tatelax closed 3 years ago

tatelax commented 3 years ago

This uses an async function with setTimeout to automatically remove old servers after the timeout specified in config.ini

This is useful when the game server crashes, comes back online, and attempts to re-add itself to the master server before a player is able to call /list.

Before this was added, the server would never be able to add itself to the master server unless it called /list because the master server would give an error about a conflicting IP. This still happens until the master server automatically prunes old servers but once that happens, the game server will get added and will be shown to the player the next time they call /list

Probably not everyone will need this but the branch exists on my fork for anyone who does if this PR isnt merged.