Permalink
Browse files

Fix condition when closing

  • Loading branch information...
1 parent 298231b commit e0c1a9d3d0d77a3ecb1b1223e2d56f11f76c7f5b @eric eric committed Sep 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/c_zookeeper.rb
View
@@ -280,7 +280,7 @@ def event_thread_body
if @_shutting_down and not (@_closed or is_unrecoverable)
logger.debug { "we're in shutting down state, there are #{@reg.in_flight.length} in_flight completions" }
- until @reg.in_flight.empty? or is_unrecoverable or @_closed
+ until @reg.in_flight.empty? or @_closed or is_unrecoverable
zkrb_iterate_event_loop
iterate_event_delivery
logger.debug { "there are #{@reg.in_flight} in_flight completions left" }

0 comments on commit e0c1a9d

Please sign in to comment.