15
16
17
18
19
20
21
22
23
24
|
# File 'lib/rpush/embed.rb', line 15
def self.shutdown
return unless Rpush.config.embedded
Rpush::Daemon.shutdown
@embed_thread.join if @embed_thread
rescue StandardError => e
STDERR.puts(e.message)
STDERR.puts(e.backtrace.join("\n"))
ensure
@embed_thread = nil
end
|