From 363943b1960618fbc19506ff9da42787cdff0054 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 9 Feb 2016 00:04:08 +0100 Subject: [PATCH] Removed not necessary hread. --- lib/import/zendesk.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/import/zendesk.rb b/lib/import/zendesk.rb index f7c61c041..e4aa41140 100644 --- a/lib/import/zendesk.rb +++ b/lib/import/zendesk.rb @@ -77,9 +77,7 @@ module Import::Zendesk # start thread to import data begin - import_thread = Thread.new { - Import::Zendesk.start - } + Import::Zendesk.start rescue => e status_update_thread.exit status_update_thread.join @@ -92,7 +90,6 @@ module Import::Zendesk Cache.write('import:state', result, expires_in: 10.hours) return false end - import_thread.join status_update_thread.exit status_update_thread.join