WebHost: prevent infinite spinup loop of Rooms

This commit is contained in:
Fabian Dill
2022-11-04 19:19:04 +01:00
committed by Fabian Dill
parent c3c1ce5827
commit 208a0c6b08
3 changed files with 16 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ class Room(db.Entity):
show_spoiler = Required(int, default=0) # 0 -> never, 1 -> after completion, -> 2 always
timeout = Required(int, default=lambda: 2 * 60 * 60) # seconds since last activity to shutdown
tracker = Optional(UUID, index=True)
# Port special value -1 means the server errored out. Another attempt can be made with a page refresh
last_port = Optional(int, default=lambda: 0)