lib/invoker/process_manager.rb in invoker-1.5.6 vs lib/invoker/process_manager.rb in invoker-1.5.7

- old
+ new

@@ -166,9 +166,12 @@ def remove_worker(command_label, trigger_event = true) worker = @workers[command_label] if worker @open_pipes.delete(worker.pipe_end.fileno) @workers.delete(command_label) + # Move label color to front of array so it's reused first + LABEL_COLORS.delete(worker.color) + LABEL_COLORS.unshift(worker.color) end if trigger_event Invoker.commander.trigger(command_label, :worker_removed) end end