Browse files

try always clearing continuations when the event thread is going down

  • Loading branch information...
1 parent 44b4667 commit f0be151d0c736a95a56a5ac34d8f46262958b07f @slyphon slyphon committed Aug 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/c_zookeeper.rb
View
4 ext/c_zookeeper.rb
@@ -279,7 +279,7 @@ def event_thread_body
end
# in shutting down state, no more can be added to @reg
- if @_shutting_down # TODO: this should probably also happen in the is_unrecoverable case!
+ # if @_shutting_down # TODO: this should probably also happen in the is_unrecoverable case!
# anything left over after all that gets the finger
remaining = @reg.next_batch + @reg.in_flight.values
@@ -290,7 +290,7 @@ def event_thread_body
while cb = remaining.shift
cb.shutdown!
end
- end
+ # end
rescue ShuttingDownException
logger.error { "event thread saw @_shutting_down, bailing without entering loop" }
ensure

0 comments on commit f0be151

Please sign in to comment.