Don't bother cleaning queues, it fails on hot-restarts.
This commit is contained in:
parent
f73845b104
commit
47fcf40ec6
1 changed files with 0 additions and 19 deletions
19
server.py
19
server.py
|
@ -334,25 +334,6 @@ class BAPSicleServer:
|
|||
|
||||
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.")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue