diff options
author | Alex Young <alex@bytemark.co.uk> | 2015-04-20 16:06:39 +0100 |
---|---|---|
committer | Alex Young <alex@bytemark.co.uk> | 2015-04-20 16:06:39 +0100 |
commit | 0a42bb136dc6ccbbf36500d4cc50441681178867 (patch) | |
tree | 6f2ce8a8d5e25a174a5c4483cca7aa1526e42eae | |
parent | 2ec8ca7efdab8b3246ba421ae4e9052702d398db (diff) |
Add a Thread#wakeup call on #stop to speed up restarts
-rw-r--r-- | lib/mauve/mauve_thread.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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? |