Commit 2f9255a4 authored by ibuler's avatar ibuler

Merge pull request #172 from jumpserver/web_log

fix(web terminal and log kill) fix close web terminal when not init finished
parents 98f9e632 5d0171d5
......@@ -285,7 +285,10 @@ class TermLogRecorder(object):
timestamp=int(self.recoderStartTime))
if self.user:
record.user.add(self.user)
del TermLogRecorder.loglist[str(self.id)]
try:
del TermLogRecorder.loglist[str(self.id)]
except KeyError:
pass
def list(self, user=None, uid=None):
tmp = []
......
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