Permalink
Browse files

clean up cruft, reindent in c_zookeeper

  • Loading branch information...
1 parent f0be151 commit 9da460ff43a78d9eb7302bba231ae21dd1254d49 @slyphon slyphon committed Aug 15, 2012
Showing with 7 additions and 10 deletions.
  1. +7 −10 ext/c_zookeeper.rb
View
@@ -278,19 +278,16 @@ def event_thread_body
logger.debug { "finished completions" }
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!
- # anything left over after all that gets the finger
- remaining = @reg.next_batch + @reg.in_flight.values
+ # anything left over after all that gets the finger
+ remaining = @reg.next_batch + @reg.in_flight.values
- logger.debug { "there are #{remaining.length} completions to awaken" }
+ logger.debug { "there are #{remaining.length} completions to awaken" }
- @reg.in_flight.clear
+ @reg.in_flight.clear
- while cb = remaining.shift
- cb.shutdown!
- end
- # end
+ while cb = remaining.shift
+ cb.shutdown!
+ end
rescue ShuttingDownException
logger.error { "event thread saw @_shutting_down, bailing without entering loop" }
ensure

0 comments on commit 9da460f

Please sign in to comment.