fix(connector): fixed bug of cache dict size error (#1226)
This commit is contained in:
parent
93491eadfc
commit
41c0f19c62
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ class CachedSessions:
|
|||
for sessionid, values in self.session_project.items():
|
||||
if current_time - values[0] > self.max_alive_time:
|
||||
to_clean_list.append(sessionid)
|
||||
del self.session_project[sessionid]
|
||||
for sessionid in to_clean_list:
|
||||
del self.session_project[sessionid]
|
||||
return to_clean_list
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue