Do not hang forever if shutdown fails

Stephen Paul Weber created

Change summary

lib/blather_notify.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

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