From e29daf4c9cde4aa8cb4cf3c6fab88704b6851a8b Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 11 Aug 2021 15:13:46 -0500 Subject: [PATCH] Do not wait to exit until after we are ready --- lib/blather_notify.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blather_notify.rb b/lib/blather_notify.rb index 754e3db7a8bf4e8956706701c408d784e882959a..d9c3846b4dbdb1cfcd445e6d48da87e001f47e74 100644 --- a/lib/blather_notify.rb +++ b/lib/blather_notify.rb @@ -21,9 +21,9 @@ module BlatherNotify end end + Timeout.timeout(30) { @ready.pop } at_exit { wait_then_exit } - Timeout.timeout(30) { @ready.pop } end def self.wait_then_exit