diff --git a/pymysqlpool/pool.py b/pymysqlpool/pool.py index 4742319..b511de9 100644 --- a/pymysqlpool/pool.py +++ b/pymysqlpool/pool.py @@ -127,9 +127,11 @@ def create_conn(self): def _start(self): """Start thread for resize pool""" - t = Thread(target=resize_pool, args=(self.interval, self.stati_num, - self.multiple, self.counter, - self.accumulation, self)) + t = Thread(target=resize_pool, + args=(self.interval, self.stati_num, + self.multiple, self.counter, + self.accumulation, self), + daemon=True) t.start() def _init_pool(self):