Don't replace "Request aborted" errors for files.

This commit is contained in:
levlam 2023-05-17 13:52:47 +03:00
parent f900fc2480
commit 20b312b144

View File

@ -3980,7 +3980,8 @@ void FileManager::on_error_impl(FileNodePtr node, Query::Type type, bool was_act
return; return;
} }
if (G()->close_flag() && status.code() < 400) { if (G()->close_flag() && (status.code() < 400 || (status.code() == Global::request_aborted_error().code() &&
status.message() == Global::request_aborted_error().message()))) {
status = Global::request_aborted_error(); status = Global::request_aborted_error();
} else { } else {
if (status.code() != -1) { if (status.code() != -1) {