From 0a42bb136dc6ccbbf36500d4cc50441681178867 Mon Sep 17 00:00:00 2001 From: Alex Young Date: Mon, 20 Apr 2015 16:06:39 +0100 Subject: Add a Thread#wakeup call on #stop to speed up restarts --- lib/mauve/mauve_thread.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mauve/mauve_thread.rb b/lib/mauve/mauve_thread.rb index b59fa60..1bf2e48 100644 --- a/lib/mauve/mauve_thread.rb +++ b/lib/mauve/mauve_thread.rb @@ -140,6 +140,7 @@ module Mauve # def stop self.state = :stopping + @thread.wakeup 10.times do break unless self.alive? -- cgit v1.2.1