Don't run our whole app in an at_exit We don't use much of it, and this makes using other at_exit hooks more realistic.
1 files changed, 5 insertions(+), 2 deletions(-) M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +5 -2
@@ 3,8 3,7 @@ require "pg/em/connection_pool" require "bandwidth" require "bigdecimal" require "blather/client/dsl" # Require this first to not auto-include require "blather/client" require "blather/client/dsl" require "braintree" require "date" @@ require "dhall" 897,3 896,7 @@ iq type: [:get, :set] do |iq| self << Blather::StanzaError.new(iq, "feature-not-implemented", :cancel) end trap(:INT) { EM.stop } trap(:TERM) { EM.stop } EM.run { client.run }