diff --git a/src/caosdb/transaction.cpp b/src/caosdb/transaction.cpp index bd85a8528edeae30e38141cf242c158c92dbad05..398d4628ad3bc13cd87be580d6eac27c26f9e9fb 100644 --- a/src/caosdb/transaction.cpp +++ b/src/caosdb/transaction.cpp @@ -324,7 +324,7 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode { } // file download afterwards - if (status.GetCode() == StatusCode::SUCCESS && !download_files.empty()) { + if (status.GetCode() == StatusCode::EXECUTING && !download_files.empty()) { // run over all retrieved entities and get the download_id for (auto sub_response : *(response->mutable_responses())) { if (sub_response.transaction_response_case() ==