F fix bug

pull/220/head
vapao 2020-10-17 16:40:47 +08:00
parent 98fcee0c62
commit 2f7a8ecac6
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class SSHConsumer(WebsocketConsumer):
except Exception as e:
self.send(bytes_data=f'Exception: {e}\r\n'.encode())
self.close()
return
self.chan = self.ssh.invoke_shell(term='xterm')
self.chan.transport.set_keepalive(30)
Thread(target=self.loop_read).start()