lib/websocket/eventmachine/base.rb in websocket-eventmachine-base-1.1.0 vs lib/websocket/eventmachine/base.rb in websocket-eventmachine-base-1.1.1
- old
+ new
@@ -120,10 +120,10 @@
# @private
def unbind
unless @state == :closed
@state = :closed
close
- trigger_onclose(1002, '')
+ trigger_onclose(1002, '') unless @state == :connecting
end
end
#######################
### Private methods ###