diff --git a/telegram/utils/request.py b/telegram/utils/request.py index f43482747..28cca9e41 100644 --- a/telegram/utils/request.py +++ b/telegram/utils/request.py @@ -33,10 +33,11 @@ CON_POOL_SIZE = 1 def _get_con_pool(): + global _CON_POOL + if _CON_POOL is not None: return _CON_POOL - global _CON_POOL _CON_POOL = urllib3.HTTPSConnectionPool( host='api.telegram.org', maxsize=CON_POOL_SIZE,