~singpolyma/jmp-pay

b104530874de26ec07d2240be0a7f5d68b9225a1 — Stephen Paul Weber 1 year, 10 months ago 673a9b9
Do not hang forever if shutdown fails
1 files changed, 2 insertions(+), 1 deletions(-)

M lib/blather_notify.rb
M lib/blather_notify.rb => lib/blather_notify.rb +2 -1
@@ 27,8 27,9 @@ module BlatherNotify
	end

	def self.wait_then_exit
		shutdown
		disconnected { EM.stop }
		EM.add_timer(30) { EM.stop }
		shutdown
		@thread.join
	end
end