fix bug with eventmachine in dev
This commit is contained in:
parent
47fcf0030e
commit
28b387d4ca
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ module RocketAMF
|
||||||
def fetch
|
def fetch
|
||||||
uri = @service.gateway.uri
|
uri = @service.gateway.uri
|
||||||
data = envelope.serialize
|
data = envelope.serialize
|
||||||
if defined?(EventMachine) && EventMachine.reactor_running?
|
if 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