lib/zmachine.rb in zmachine-0.4.1 vs lib/zmachine.rb in zmachine-0.4.2

- old
+ new

@@ -11,12 +11,12 @@ class << self attr_accessor :logger attr_accessor :debug end - def self.clear_current_reactor - Thread.current[:reactor] = nil + def self.reactor=(value) + Thread.current[:reactor] = value end def self.reactor Thread.current[:reactor] ||= Reactor.new end @@ -96,13 +96,9 @@ reactor.stop_event_loop end def self.stop_server(signature) reactor.stop_server(signature) - end - - def self.stop - Reactor.terminate_all_reactors end end if ENV['DEBUG']