about summary refs log tree commit homepage
path: root/lib/rainbows/event_machine.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-16 00:50:23 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-16 00:50:23 -0800
commit2ccce76d94046d017a9b02a0b033e3fff9483e98 (patch)
tree6511477823728371bc4e378b760a16b45da5908a /lib/rainbows/event_machine.rb
parent51e656e3db593c662e7abdf969dd79570525aac9 (diff)
downloadrainbows-2ccce76d94046d017a9b02a0b033e3fff9483e98.tar.gz
It gets in the way of Rev/EM-based models that won't use EvCore.
It doesn't actually do anything useful except making an extra
layer of indirection to follow.
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r--lib/rainbows/event_machine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb
index e81914a..bcc0240 100644
--- a/lib/rainbows/event_machine.rb
+++ b/lib/rainbows/event_machine.rb
@@ -190,7 +190,7 @@ module Rainbows
       client_class = Rainbows.const_get(@use).const_get(:Client)
       Server.const_set(:MAX, worker_connections + LISTENERS.size)
       Server.const_set(:CL, client_class)
-      EvCore.setup(client_class)
+      client_class.const_set(:APP, G.server.app)
       EM.run {
         conns = EM.instance_variable_get(:@conns) or
           raise RuntimeError, "EM @conns instance variable not accessible!"