添加mysql关闭

This commit is contained in:
aozhiwei 2020-12-30 15:57:31 +08:00
parent bfb5fe4bd1
commit d45deb7828

View File

@ -157,6 +157,9 @@ def fullUpdateRank():
time.sleep(0.001);
if not has_data:
break
#end while
cursor.close()
conn.close()
r = _getRedis()
for channel in kill_hash:
@ -224,6 +227,9 @@ def incrementUpdateRank():
time.sleep(0.001);
if not has_data:
break
#end while
cursor.close()
conn.close()
for channel in kill_hash:
_updateKillRank(r, channel, kill_hash[channel])