lib/websocket-client-simple/client.rb in websocket-client-simple-0.2.2 vs lib/websocket-client-simple/client.rb in websocket-client-simple-0.2.3

- old
+ new

@@ -72,12 +72,12 @@ def close return if @closed send nil, :type => :close @closed = true @socket.close if @socket - Thread.kill @thread if @thread @socket = nil emit :__close + Thread.kill @thread if @thread end def open? @handshake.finished? and !@closed end