Skip to content

Commit 2239a7b

Browse files
authored
Avoid duplicate resource checksum refresh on start (#4885)
#### Summary Avoid running a second full resource checksum refresh after successful resource start. #### Motivation Resolves #4151. PR #3924 made checksum/cache work disk-backed, but resource start still repeated `GenerateChecksums()` after `StartResource()` already checked for changes. This made restarts re-read resource and HTTP cache files unnecessarily. #### Test plan * Review console, Lua, refresh, and startup paths to confirm loaded resources already get checksums during load or reload. #### Checklist * [x] Your code should follow the [coding guidelines](https://wiki.multitheftauto.com/index.php?title=Coding_guidelines). * [x] Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.
1 parent 21b46f8 commit 2239a7b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Server/mods/deathmatch/logic/CResource.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,9 +1069,6 @@ bool CResource::Start(std::list<CResource*>* pDependents, bool bManualStart, con
10691069
SendNoClientCacheScripts();
10701070
m_bClientSync = true;
10711071

1072-
// HACK?: stops resources getting loaded twice when you change them then manually restart
1073-
GenerateChecksums();
1074-
10751072
// Add us to the running resources list
10761073
m_StartedResources.push_back(this);
10771074

0 commit comments

Comments
 (0)