add router shutdown and task cancellation control
This commit is contained in:
@@ -401,6 +401,5 @@ class PathListener(Listener[FileEvent]):
|
||||
self.write.write(b"\x00")
|
||||
self.write.close()
|
||||
|
||||
if self.router.thread_pool is not None:
|
||||
self.router.thread_pool.shutdown()
|
||||
self.router.shutdown()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user