Skip to content

Commit

Permalink
Merge pull request #709 from celluloid/698-remove-default-at_exit-han…
Browse files Browse the repository at this point in the history
…dler

Fix autostart.
  • Loading branch information
ioquatix committed Apr 3, 2016
2 parents c54bbde + 07c5005 commit a6f1221
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions lib/celluloid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,3 @@ def future(meth = nil, *args, &block)
end
end

unless defined?($CELLULOID_TEST) && $CELLULOID_TEST
Celluloid.register_shutdown
Celluloid.init
end
5 changes: 5 additions & 0 deletions lib/celluloid/autostart.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
require "celluloid"

Celluloid.start

unless defined?($CELLULOID_TEST) && $CELLULOID_TEST
Celluloid.register_shutdown
Celluloid.init
end
2 changes: 1 addition & 1 deletion lib/celluloid/current.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$CELLULOID_BACKPORTED = false
require "celluloid/autostart"
require "celluloid"

0 comments on commit a6f1221

Please sign in to comment.