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