瀏覽代碼

more fiber

Paul Klumpp 12 年之前
父節點
當前提交
da750a410b
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      em_server.rb

+ 3 - 2
em_server.rb

@@ -404,8 +404,9 @@ def main
 	# #run: Note that this will block current thread.
 	EventMachine.run do
 
-    EventMachine.start_server("0.0.0.0", 7337, InterconnectionPointProtocolHandler)
-
+    f = Fiber.new do
+      EventMachine.start_server("0.0.0.0", 7337, InterconnectionPointProtocolHandler)
+    end.resume
 	end
 end