]>
git.proxmox.com Git - mirror_xterm.js.git/commitdiff
projects
/
mirror_xterm.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc7c310
)
Check socket state before sending data
author
Johannes Zellner
<johannes@nebulon.de>
Thu, 31 Aug 2017 18:26:34 +0000
(20:26 +0200)
committer
Johannes Zellner
<johannes@nebulon.de>
Thu, 31 Aug 2017 18:26:36 +0000
(20:26 +0200)
Maybe related to #929
src/addons/attach/attach.js
patch
|
blob
|
blame
|
history
diff --git
a/src/addons/attach/attach.js
b/src/addons/attach/attach.js
index c2a7989b4ebe35014250c71bc2595795017f5103..2e1106249f5070cd0fc8bca9eea4c029290c34f1 100644
(file)
--- a/
src/addons/attach/attach.js
+++ b/
src/addons/attach/attach.js
@@
-66,6
+66,10
@@
};
term._sendData = function (data) {
+ if (socket.readyState !== 1) {
+ return;
+ }
+
socket.send(data);
};