summaryrefslogtreecommitdiff
path: root/lib/gitlab_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r--lib/gitlab_projects.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb
index 3afbe64..4067d13 100644
--- a/lib/gitlab_projects.rb
+++ b/lib/gitlab_projects.rb
@@ -109,8 +109,10 @@ class GitlabProjects
Process.wait(pid)
end
rescue Timeout::Error
- Process.kill('KILL', pid)
$logger.error "Importing project #{@project_name} from <#{@source}> failed due to timeout."
+
+ Process.kill('KILL', pid)
+ Process.wait
FileUtils.rm_rf(full_path)
false
else