Commit 24b420c2 authored by ibuler's avatar ibuler

[Update] 修改小bug

parent 28292df8
......@@ -85,7 +85,7 @@ class Coco:
@ignore_error
def heartbeat(self):
_sessions = [s.to_json() for s in Session.sessions.values()]
_sessions = [s.to_json() for s in Session.sessions.values() if s]
tasks = app_service.terminal_heartbeat(_sessions)
if tasks:
self.handle_task(tasks)
......
......@@ -56,9 +56,9 @@ class Session:
session = cls.get_session(sid)
if session:
session.close()
app_service.finish_session(session.to_json())
app_service.finish_replay(sid)
del cls.sessions[sid]
app_service.finish_session(session.to_json())
app_service.finish_replay(sid)
del cls.sessions[sid]
def add_watcher(self, watcher, silent=False):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment