forked from OpenNeo/impress
no more eventmachine for http requests
This commit is contained in:
parent
7b1c775373
commit
ac3e9c0051
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ module RocketAMF
|
||||||
def fetch
|
def fetch
|
||||||
uri = @service.gateway.uri
|
uri = @service.gateway.uri
|
||||||
data = envelope.serialize
|
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
|
req = EM::HttpRequest.new(uri).post :body => data
|
||||||
response_body = req.response
|
response_body = req.response
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue