Further cleanup.
This commit is contained in:
parent
873fd45e51
commit
f73845b104
1 changed files with 3 additions and 5 deletions
|
@ -332,7 +332,7 @@ class BAPSicleServer:
|
|||
for player in self.player:
|
||||
player.join(timeout=PROCESS_KILL_TIMEOUT_S)
|
||||
|
||||
#del self.player
|
||||
del self.player
|
||||
|
||||
print("Deleting all queues.")
|
||||
# Should speed up GC on exit a bit.
|
||||
|
@ -345,15 +345,13 @@ class BAPSicleServer:
|
|||
self.file_to_q,
|
||||
]
|
||||
for queue in queues:
|
||||
print(str(queue))
|
||||
if isinstance(queue, List):
|
||||
for inner_queue in queue:
|
||||
inner_queue.close()
|
||||
#del inner_queue
|
||||
del inner_queue
|
||||
elif isinstance(queue, Queue):
|
||||
queue.close()
|
||||
print("del", str(queue))
|
||||
#del queue
|
||||
del queue
|
||||
|
||||
print("Stopped all processes.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue