~singpolyma/jmp-pay

8db717062d5e1f41100992cc517db4a134c0f6bc — Stephen Paul Weber 1 year, 6 months ago 7756538
Wait until fully disconnected before EM.stop
1 files changed, 2 insertions(+), 4 deletions(-)

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

	def self.wait_then_exit
		EM.next_tick do
			shutdown
			EM.stop
		end
		shutdown
		disconnected { EM.stop }
		@thread.join
	end
end