mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-13 06:34:42 +00:00
fix(web terminal and log kill) fix close web terminal when not init finished
when web terminal not init complete, you close the window, online log you will see the log and cann't kill it catch a except fix it
This commit is contained in:
parent
c5382c88a2
commit
5d0171d5b7
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user