Skip to content

Commit

Permalink
only unload if started
Browse files Browse the repository at this point in the history
  • Loading branch information
skierkowski committed Apr 11, 2015
1 parent fe0aefc commit 9ef5f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factor/commands/workflow_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def server(_args, options)
end

logger.info "Sending stop signal"
@runtimes.each {|r| r.unload}
@runtimes.each {|r| r.unload if r.started? }
Factor::Common::Blocker.block_until sleep:0.5 do
@runtimes.all?{|r| r.stopped?}
end
Expand Down

0 comments on commit 9ef5f20

Please sign in to comment.