WebHost: fix error on save

This commit is contained in:
Fabian Dill
2022-08-23 22:18:24 +02:00
committed by Fabian Dill
parent fab12dca0b
commit 33103b209d

View File

@@ -103,7 +103,7 @@ class WebHostContext(Context):
room.multisave = pickle.dumps(self.get_save())
# saving only occurs on activity, so we can "abuse" this information to mark this as last_activity
if not exit_save: # we don't want to count a shutdown as activity, which would restart the server again
room.last_activity = datetime.utcnow()
room.last_activity = datetime.datetime.utcnow()
return True
def get_save(self) -> dict: