From d85331887a6a2c0255a223b8ab7cced2ba372dae Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 15 Feb 2020 15:33:11 +0800 Subject: [PATCH] remove double thread.new --- temp_file/playground_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/temp_file/playground_controller.rb b/temp_file/playground_controller.rb index a662d30..120046c 100644 --- a/temp_file/playground_controller.rb +++ b/temp_file/playground_controller.rb @@ -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