mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
fix(terminal) onConnection bind: add context
This commit is contained in:
parent
75a1b4a5b6
commit
03c5906a39
1 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,9 @@
|
|||
socket.removeListener('terminal-data', dataFunc, clientSocket);
|
||||
socket.removeListener('terminal-resize', resizeFunc, clientSocket);
|
||||
socket.removeListener('disconnect', onDisconnect, clientSocket);
|
||||
}.bind(ConNum, term);
|
||||
|
||||
term.destroy();
|
||||
}.bind(null, ConNum, term);
|
||||
|
||||
socket.on('terminal-data', dataFunc, clientSocket);
|
||||
socket.on('terminal-resize', resizeFunc, clientSocket);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue