From 46d585c7623a230309d67804071db08477a18c3e Mon Sep 17 00:00:00 2001 From: timofey Date: Fri, 4 Nov 2022 06:22:42 +0000 Subject: [PATCH] pool 2 --- ptvp35/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ptvp35/__init__.py b/ptvp35/__init__.py index 364b6e2..eccacbe 100644 --- a/ptvp35/__init__.py +++ b/ptvp35/__init__.py @@ -286,6 +286,8 @@ class DbConnection: self.__task.cancel() await self._dump_buffer() self.__file.close() + self.__pool.shutdown() + self.__pool = concurrent.futures.ThreadPoolExecutor() await self._build_file(self.__mmdb) self.not_running = True self.__pool.shutdown()