Change stage in the Base.shutdown() method to that all parsers stop processing input.

This commit is contained in:
James Coglan
2015-07-04 21:06:50 +01:00
parent f218999304
commit 8eccf044b0
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -130,6 +130,7 @@ module WebSocket
def shutdown(code, reason)
@ready_state = 3
@stage = 5
emit(:close, CloseEvent.new(code, reason))
end
-1
View File
@@ -258,7 +258,6 @@ module WebSocket
def shutdown(code, reason)
frame(reason, :close, code) if @ready_state < 2
@frame = @message = nil
@stage = 5
@extensions.close
super
end