Don't bother cleaning queues, it fails on hot-restarts.

This commit is contained in:
Matthew Stratford 2022-03-12 17:02:32 +00:00
parent f73845b104
commit 47fcf40ec6

View file

@ -334,25 +334,6 @@ class BAPSicleServer:
del self.player del self.player
print("Deleting all queues.")
# Should speed up GC on exit a bit.
queues = [
self.player_to_q,
self.player_from_q,
self.ui_to_q,
self.websocket_to_q,
self.controller_to_q,
self.file_to_q,
]
for queue in queues:
if isinstance(queue, List):
for inner_queue in queue:
inner_queue.close()
del inner_queue
elif isinstance(queue, Queue):
queue.close()
del queue
print("Stopped all processes.") print("Stopped all processes.")