mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
stop_pending also counts as not running
This commit is contained in:
@@ -145,8 +145,8 @@ class User(HasTraits):
|
||||
@property
|
||||
def running(self):
|
||||
"""property for whether a user has a running server"""
|
||||
if self.spawn_pending:
|
||||
return False # server is not running if spawn is still pending
|
||||
if self.spawn_pending or self.stop_pending:
|
||||
return False # server is not running if spawn or stop is still pending
|
||||
if self.server is None:
|
||||
return False
|
||||
return True
|
||||
|
Reference in New Issue
Block a user