Skip to content

Commit

Permalink
fix: don't set state to DONE in cleanup handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Alystrasz committed Sep 4, 2024
1 parent c2446ee commit be87669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions primedev/mods/autodownload/moddownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,7 @@ void ModDownloader::DownloadMod(std::string modName, std::string modVersion)
spdlog::error("Error while removing downloaded archive: {}", a.what());
}

modState.state = DONE;
spdlog::info("Done downloading {}.", modName);
spdlog::info("Done cleaning after downloading {}.", modName);
});

// Download mod archive
Expand All @@ -634,6 +633,7 @@ void ModDownloader::DownloadMod(std::string modName, std::string modVersion)

// Extract downloaded mod archive
ExtractMod(archiveLocation);
modState.state = DONE;
});

requestThread.detach();
Expand Down

0 comments on commit be87669

Please sign in to comment.