Skip to content

Commit

Permalink
fix(elasticsearch): crash on rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Apr 19, 2019
1 parent 2946d07 commit bc0728b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/elasticsearch/rebuildIndexChild.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ function rebuild (callback) {

// Kill it in 10sec to offset refresh timers
setTimeout(function () {
process.send({ success: true })
return process.kill(0)
return process.send({ success: true })
}, 6000)
})
})()

0 comments on commit bc0728b

Please sign in to comment.