Skip to content

Commit 827b800

Browse files
committed
Fixes CHEF-737; gotta head up the EM reactor before you sleep for it
1 parent f7c5d64 commit 827b800

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

chef-server-api/lib/chef-server-api.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ def self.init
6060
def self.activate
6161
Mixlib::Authentication::Log.logger = Nanite::Log.logger = Ohai::Log.logger = Chef::Log.logger
6262

63+
Chef::Nanite.in_event { Chef::Log.info("Nanite is ready") }
64+
6365
Thread.new do
6466
until EM.reactor_running?
6567
sleep 1
6668
end
67-
Chef::Nanite.in_event { Chef::Log.info("Nanite is ready") }
6869

6970
unless Merb::Config.environment == "test"
7071
# create the couch design docs for nodes, roles, and databags

0 commit comments

Comments
 (0)