Skip to content

Commit

Permalink
Atmosphere#205 - It's not possible to abort an opening websocket conn…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
Julian Yerfino committed Mar 29, 2017
1 parent 011a37d commit b8f6d37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@
_activeRequest = null;
}
if (_websocket != null) {
if (_websocket.canSendMessage) {
if (_websocket.readyState === 0 || _websocket.readyState === 1) {
_debug("invoking .close() on WebSocket object");
_websocket.close();
}
Expand Down

0 comments on commit b8f6d37

Please sign in to comment.