check remaining

This commit is contained in:
Scott E. Graves 2025-02-18 16:02:50 -06:00
parent 855e3853b6
commit e5aaf6ad73

View File

@ -145,7 +145,7 @@ static void check_server(const server_cfg &server, data_db &state_db) {
} else if (size_left == 0U || not is_downloading) {
state_db.remove(download_id);
}
} else if (is_downloading) {
} else if (is_downloading && size_left > 0U) {
update_entry();
}
}