lib/reel/request/state_machine.rb in reel-0.6.0.pre1 vs lib/reel/request/state_machine.rb in reel-0.6.0.pre2

- old
+ new

@@ -16,11 +16,13 @@ state :hijacked do @hijacked = true end - state :closed do + # FSM fails open for valid transitions + # Set an empty array to disallow transitioning out of closed + state :closed, :to => [] do @socket.close unless @hijacked || @socket.closed? end end end -end \ No newline at end of file +end