1
0
Fork 0
forked from OpenNeo/impress

no more eventmachine for http requests

This commit is contained in:
Emi Matchu 2011-02-09 18:39:16 -05:00
parent 7b1c775373
commit ac3e9c0051

View file

@ -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