lib/sideband/thread.rb in sideband-1.0.1 vs lib/sideband/thread.rb in sideband-1.0.2

- old
+ new

@@ -4,10 +4,10 @@ attr_reader :thread def initialize(manager) @manager = manager @thread = ::Thread.new do - while work = @manager.queue.pop + while @manager.queue && work = @manager.queue.pop exit if work.nil? begin work.call rescue Exception