From b39c7541fb1777eb69c561517fa67c609fc75b17 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 31 Dec 2024 17:24:19 +0700 Subject: [PATCH] Add timeout for waiting watchdog observer thread to complete --- gns3server/db/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/db/tasks.py b/gns3server/db/tasks.py index 16fc74cd..f667b702 100644 --- a/gns3server/db/tasks.py +++ b/gns3server/db/tasks.py @@ -214,7 +214,7 @@ async def monitor_images_on_filesystem(app: FastAPI): # stop when the app is exiting if app.state.exiting: observer.stop() - observer.join() + observer.join(10) log.info(f"Stopping monitoring for new images in '{path}'") loop.call_soon_threadsafe(queue.put_nowait, None) break