Skip to content

Commit

Permalink
fixed: WS is null
Browse files Browse the repository at this point in the history
  • Loading branch information
taoqf committed Jul 25, 2017
1 parent 15e83fb commit 6a6e4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function WebSocketStream(target, protocols, options) {
function socketWriteNode(chunk, enc, next) {
// avoid errors, this never happens unless
// destroy() is called
if (socket.readyState !== WS.OPEN) {
if (socket.readyState !== socket.OPEN) {
next()
return
}
Expand Down

0 comments on commit 6a6e4d0

Please sign in to comment.