lib/zk/client/threaded.rb in zk-1.9.0 vs lib/zk/client/threaded.rb in zk-1.9.1

- old
+ new

@@ -243,9 +243,11 @@ end logger.debug { "reopening, no fork detected" } @last_cnx_state = Zookeeper::ZOO_CONNECTING_STATE + @client_state = RUNNING # reset state to running if we were paused or closed + timeout ||= @connection_timeout # or @connection_timeout here is the docuemnted behavior on Base#reopen @cnx.reopen(timeout) # ok, we werent' forked, so just reopen # this is a bit of a hack, because we need to wait until the event thread