Commit 2da0b5b7 authored by 广宏伟's avatar 广宏伟

Merged in dev (pull request #101)

[Update] 修改小bug
parents bf122400 24b420c2
...@@ -85,7 +85,7 @@ class Coco: ...@@ -85,7 +85,7 @@ class Coco:
@ignore_error @ignore_error
def heartbeat(self): 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) tasks = app_service.terminal_heartbeat(_sessions)
if tasks: if tasks:
self.handle_task(tasks) self.handle_task(tasks)
......
...@@ -56,9 +56,9 @@ class Session: ...@@ -56,9 +56,9 @@ class Session:
session = cls.get_session(sid) session = cls.get_session(sid)
if session: if session:
session.close() session.close()
app_service.finish_session(session.to_json()) app_service.finish_session(session.to_json())
app_service.finish_replay(sid) app_service.finish_replay(sid)
del cls.sessions[sid] del cls.sessions[sid]
def add_watcher(self, watcher, silent=False): 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