Merge pull request #172 from jumpserver/web_log

fix(web terminal and log kill) fix close web terminal when not init finished
pull/174/head
ibuler 2016-03-28 23:09:37 +08:00
commit 2f9255a46f
1 changed files with 4 additions and 1 deletions

View File

@ -285,7 +285,10 @@ class TermLogRecorder(object):
timestamp=int(self.recoderStartTime))
if self.user:
record.user.add(self.user)
try:
del TermLogRecorder.loglist[str(self.id)]
except KeyError:
pass
def list(self, user=None, uid=None):
tmp = []