remove double thread.new
This commit is contained in:
1 parent
f1de48f203
commit
d85331887a
1 file changed
+1
-3
@@ -140,9 +140,7 @@ class Admin::PlaygroundController < OrbitAdminController
|
||||
end
|
||||
mul.status['alive'] = false
|
||||
mul.save
|
||||
Thread.new do
|
||||
Bundler.with_clean_env{system("kill -s USR2 `cat tmp/pids/unicorn.pid`")}
|
||||
end
|
||||
Bundler.with_clean_env{system("kill -s USR2 `cat tmp/pids/unicorn.pid`")}
|
||||
end
|
||||
rescue => e
|
||||
mul.status['alive'] = false
|
||||
|
||||
Reference in new issue
Block a user