Make sure that we don't try to do anything to webrick until it has really started.
Signed-off-by: Jesse Wolfe <[email protected]> --- lib/puppet/network/http/webrick.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/puppet/network/http/webrick.rb b/lib/puppet/network/http/webrick.rb index bf4bf88..cea7631 100644 --- a/lib/puppet/network/http/webrick.rb +++ b/lib/puppet/network/http/webrick.rb @@ -44,7 +44,8 @@ class Puppet::Network::HTTP::WEBrick sock.accept @server.run(sock) } - } + } + sleep 0.1 until @server.status == :Running end end -- 1.6.5 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
