From ab175517f8fd22acada6daa46c89edda080fa6a9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 5 Aug 2011 19:08:12 +0000 Subject: event_machine: APP needs to be in the main Client class Oops, testing against new changes against cramp.git here --- lib/rainbows/event_machine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index 64f61da..a86cab8 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -82,7 +82,7 @@ module Rainbows::EventMachine max = worker_connections + LISTENERS.size Rainbows::EventMachine::Server.const_set(:MAX, max) Rainbows::EventMachine::Server.const_set(:CL, client_class) - client_class.const_set(:APP, Rainbows.server.app) + Rainbows::EventMachine::Client.const_set(:APP, Rainbows.server.app) EM.run { conns = EM.instance_variable_get(:@conns) or raise RuntimeError, "EM @conns instance variable not accessible!" -- cgit v1.2.3-24-ge0c7