Cleanup if spawner stop fails

This commit is contained in:
Shubham Sharma
2019-12-13 02:11:52 +05:30
parent abb93ad799
commit 5a747baeca

View File

@@ -770,6 +770,7 @@ class User:
self.log.debug("Finished stopping %s", spawner._log_name)
RUNNING_SERVERS.dec()
finally:
spawner.server = None
spawner.orm_spawner.started = None
self.db.commit()
# trigger post-stop hook