lib/websocket-client-simple/client.rb in websocket-client-simple-0.6.0 vs lib/websocket-client-simple/client.rb in websocket-client-simple-0.6.1

- old
+ new

@@ -95,10 +95,10 @@ emit :__close Thread.kill @thread if @thread end def open? - @handshake.finished? and !@closed + @handshake&.finished? and !@closed end def closed? @closed end