mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Add timeout for waiting watchdog observer thread to complete
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user