mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Fix stack on server stop
This commit is contained in:
parent
41cf247c5a
commit
c924663ab3
@ -593,9 +593,14 @@ class ServerInstance:
|
||||
self.cleanup_server_object()
|
||||
server_users = PermissionsServers.get_server_user_list(self.server_id)
|
||||
|
||||
# remove the stats polling job since server is stopped
|
||||
self.server_scheduler.remove_job("stats_" + str(self.server_id))
|
||||
|
||||
try:
|
||||
# remove the stats polling job since server is stopped
|
||||
self.server_scheduler.remove_job("stats_" + str(self.server_id))
|
||||
except JobLookupError as e:
|
||||
logger.error(
|
||||
f"Could not remove job with id stats_{self.server_id} due"
|
||||
+ f" to error: {e}"
|
||||
)
|
||||
self.record_server_stats()
|
||||
|
||||
for user in server_users:
|
||||
|
Loading…
x
Reference in New Issue
Block a user