mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
issue warning if connection pool was initialized before Dispatcher
This commit is contained in:
parent
6b457bada5
commit
1ff348adbb
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ class Dispatcher(object):
|
|||
self.__exception_event = exception_event or Event()
|
||||
|
||||
if not len(async_threads):
|
||||
if request._CON_POOL:
|
||||
self.logger.warning("Connection Pool already initialized!")
|
||||
request.CON_POOL_SIZE = workers + 3
|
||||
for i in range(workers):
|
||||
thread = Thread(target=pooled, name=str(i))
|
||||
|
|
Loading…
Reference in a new issue