Removed not necessary hread.
This commit is contained in:
parent
059be41457
commit
363943b196
1 changed files with 1 additions and 4 deletions
|
@ -77,9 +77,7 @@ module Import::Zendesk
|
||||||
|
|
||||||
# start thread to import data
|
# start thread to import data
|
||||||
begin
|
begin
|
||||||
import_thread = Thread.new {
|
|
||||||
Import::Zendesk.start
|
Import::Zendesk.start
|
||||||
}
|
|
||||||
rescue => e
|
rescue => e
|
||||||
status_update_thread.exit
|
status_update_thread.exit
|
||||||
status_update_thread.join
|
status_update_thread.join
|
||||||
|
@ -92,7 +90,6 @@ module Import::Zendesk
|
||||||
Cache.write('import:state', result, expires_in: 10.hours)
|
Cache.write('import:state', result, expires_in: 10.hours)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
import_thread.join
|
|
||||||
status_update_thread.exit
|
status_update_thread.exit
|
||||||
status_update_thread.join
|
status_update_thread.join
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue