fix session closed

This commit is contained in:
春河晴 committed 2025-06-05 17:02:22 +09:00
1 parent 85d543d555
commit feaf49d265
2 files changed
+2 -5

No files matched your search

Submodule
+1
Submodule MaiMBot-LPMM added at d5824d2f48.
+1 -5
View File
@@ -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)