lib/blather_notify.rb 🔗
@@ -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
Stephen Paul Weber created
lib/blather_notify.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -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