Fix index download thread not detecting interrupt while updating database