mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
27 lines
664 B
Plaintext
27 lines
664 B
Plaintext
var/datum/subsystem/thanksbyond/SSthanksbyond
|
|
|
|
/// Band-aided attempt to work around a problem that prevents clients from
|
|
/// connecting to the server. Closing and opening the listening port seems
|
|
/// to fix it.
|
|
/datum/subsystem/thanksbyond
|
|
name = "OpenPort"
|
|
wait = 30 SECONDS
|
|
flags = SS_FIRE_IN_LOBBY
|
|
var/port
|
|
|
|
/datum/subsystem/thanksbyond/New()
|
|
NEW_SS_GLOBAL(SSthanksbyond)
|
|
|
|
/datum/subsystem/thanksbyond/Initialize()
|
|
port = world.port
|
|
return ..()
|
|
|
|
/datum/subsystem/thanksbyond/stat_entry()
|
|
..("port: [port] | world.port: [world.port]")
|
|
|
|
/datum/subsystem/thanksbyond/fire(resumed = FALSE)
|
|
if(!port)
|
|
return
|
|
world.OpenPort("none")
|
|
world.OpenPort(port)
|