From ac3e9c0051ac6610c7da4dc46d989b5ab704d27e Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 9 Feb 2011 18:39:16 -0500 Subject: [PATCH] no more eventmachine for http requests --- lib/rocketamf/remote_gateway/request.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rocketamf/remote_gateway/request.rb b/lib/rocketamf/remote_gateway/request.rb index 5eef1ab6..3c442f07 100644 --- a/lib/rocketamf/remote_gateway/request.rb +++ b/lib/rocketamf/remote_gateway/request.rb @@ -12,7 +12,8 @@ module RocketAMF def fetch uri = @service.gateway.uri data = envelope.serialize - if defined?(EventMachine) && EventMachine.respond_to?(:reactor_running?) && EventMachine.reactor_running? + # TODO: re-enable if we go back to using threads + if false && defined?(EventMachine) && EventMachine.respond_to?(:reactor_running?) && EventMachine.reactor_running? req = EM::HttpRequest.new(uri).post :body => data response_body = req.response else