remove double thread.new

This commit is contained in:
chiu 2020-02-15 15:33:11 +08:00
parent f1de48f203
commit d85331887a
1 changed files with 1 additions and 3 deletions

View File

@ -140,10 +140,8 @@ class Admin::PlaygroundController < OrbitAdminController
end end
mul.status['alive'] = false mul.status['alive'] = false
mul.save mul.save
Thread.new do
Bundler.with_clean_env{system("kill -s USR2 `cat tmp/pids/unicorn.pid`")} Bundler.with_clean_env{system("kill -s USR2 `cat tmp/pids/unicorn.pid`")}
end end
end
rescue => e rescue => e
mul.status['alive'] = false mul.status['alive'] = false
mul.status['output'] << e.inspect mul.status['output'] << e.inspect