From 47fcf40ec69318e539d20405a54e91f97d5ab5a5 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sat, 12 Mar 2022 17:02:32 +0000 Subject: [PATCH] Don't bother cleaning queues, it fails on hot-restarts. --- server.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/server.py b/server.py index 81a3645..46d7045 100644 --- a/server.py +++ b/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.")