Merge pull request #3358 from InspectorCaracal/patch-13

Reset portal's `server_restart_mode` on server start
This commit is contained in:
Griatch 2023-12-10 17:48:08 +01:00 committed by GitHub
commit 1d889e4841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,6 +197,8 @@ class AMPServerProtocol(amp.AMPMultiConnectionProtocol):
if process and not _is_windows():
# avoid zombie-process on Unix/BSD
process.wait()
# unset the reset-mode flag on the portal
self.factory.portal.server_restart_mode = None
return
def wait_for_disconnect(self, callback, *args, **kwargs):