Skip to content

Commit 7c75589

Browse files
committed
Merge pull request postrank-labs#86 from nviennot/master
EM.epoll *must* be called before EM.run
2 parents 4486f23 + c48f009 commit 7c75589

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎lib/goliath/server.rb‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ def initialize(address = DEFAULT_ADDRESS, port = DEFAULT_PORT)
6969
#
7070
# @return Does not return until the server has halted.
7171
defstart(&blk)
72+
EM.epoll
7273
EM.synchronydo
7374
trap("INT"){EM.stop}
7475
trap("TERM"){EM.stop}
7576

76-
EM.epoll
77-
7877
load_config(options[:config])
7978
load_plugins
8079

0 commit comments

Comments
(0)