mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-05 05:16:03 +00:00
fix: 修复session维护过程的bug
This commit is contained in:
@@ -35,8 +35,8 @@ class DatabaseManager:
|
||||
|
||||
def heartbeat(self):
|
||||
while True:
|
||||
self.conn.ping(reconnect=True)
|
||||
time.sleep(30)
|
||||
self.conn.ping(reconnect=True)
|
||||
|
||||
def reconnect(self):
|
||||
self.conn = pymysql.connect(host=self.host, port=self.port, user=self.user, password=self.password,
|
||||
|
||||
Reference in New Issue
Block a user