Skip to content

Commit 3f216b6

Browse files
committed
Fix returning error in wait block state
1 parent a70bdfb commit 3f216b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator/downloaders/wait-block-state.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void WaitBlockState::alarm() {
3434
void WaitBlockState::abort_query(td::Status reason) {
3535
if (promise_no_store_) {
3636
promise_no_store_.set_error(
37-
reason.move_as_error_prefix(PSTRING() << "failed to download state " << handle_->id() << ": "));
37+
reason.clone().move_as_error_prefix(PSTRING() << "failed to download state " << handle_->id() << ": "));
3838
}
3939
if (promise_final_) {
4040
if (priority_ > 0 || (reason.code() != ErrorCode::timeout && reason.code() != ErrorCode::notready)) {

0 commit comments

Comments
 (0)