There was an error while loading. Please reload this page.
2 parents a1e6726 + 84f6c0b commit 212110aCopy full SHA for 212110a
pymysqlpool/pool.py
@@ -127,9 +127,11 @@ def create_conn(self):
127
128
def _start(self):
129
"""Start thread for resize pool"""
130
- t = Thread(target=resize_pool, args=(self.interval, self.stati_num,
131
- self.multiple, self.counter,
132
- self.accumulation, self))
+ t = Thread(target=resize_pool,
+ args=(self.interval, self.stati_num,
+ self.multiple, self.counter,
133
+ self.accumulation, self),
134
+ daemon=True)
135
t.start()
136
137
def _init_pool(self):
0 commit comments