Merge pull request #933 from nebulade/readystate
Check socket state before sending data
This commit is contained in:
@@ -66,6 +66,10 @@
|
||||
};
|
||||
|
||||
term._sendData = function (data) {
|
||||
if (socket.readyState !== 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
socket.send(data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user