File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,8 @@ class WebSocket extends EventEmitter {
282282 if ( this . readyState === WebSocket . CLOSED ) return ;
283283 if ( this . readyState === WebSocket . CONNECTING ) {
284284 const msg = 'WebSocket was closed before the connection was established' ;
285- return abortHandshake ( this , this . _req , msg ) ;
285+ abortHandshake ( this , this . _req , msg ) ;
286+ return ;
286287 }
287288
288289 if ( this . readyState === WebSocket . CLOSING ) {
@@ -477,7 +478,8 @@ class WebSocket extends EventEmitter {
477478 if ( this . readyState === WebSocket . CLOSED ) return ;
478479 if ( this . readyState === WebSocket . CONNECTING ) {
479480 const msg = 'WebSocket was closed before the connection was established' ;
480- return abortHandshake ( this , this . _req , msg ) ;
481+ abortHandshake ( this , this . _req , msg ) ;
482+ return ;
481483 }
482484
483485 if ( this . _socket ) {
You can’t perform that action at this time.
0 commit comments