mirror of https://github.com/Mai-with-u/MaiBot.git
fix session closed
parent
85d543d555
commit
feaf49d265
|
|
@ -0,0 +1 @@
|
|||
Subproject commit d5824d2f48c9415cf619d2b32608c2db6a1bbc39
|
||||
|
|
@ -3,11 +3,7 @@ import certifi
|
|||
import aiohttp
|
||||
|
||||
ssl_context = ssl.create_default_context(cafile=certifi.where())
|
||||
connector = None
|
||||
|
||||
|
||||
async def get_tcp_connector():
|
||||
global connector
|
||||
if connector is None:
|
||||
connector = aiohttp.TCPConnector(ssl=ssl_context)
|
||||
return connector
|
||||
return aiohttp.TCPConnector(ssl=ssl_context)
|
||||
|
|
|
|||
Loading…
Reference in New Issue