diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-07-18 17:48:15 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-10-14 19:39:42 +0200 |
commit | 3418a33a87cba1ed5cedc7de35e799cddb546d4f (patch) | |
tree | 5d110f1d8255a6ebc5a4e459e3ed8756d1835a67 /src/server/game/Scripting/ScriptReloadMgr.cpp | |
parent | ab5792a33a42dea6f0ddfbf358b6e29571f4fb2a (diff) |
Misc: Pass std::chrono types by value everywhere.
(cherry picked from commit 2ef9d301f0869b443122e2ba543af054c5b0e53c)
Diffstat (limited to 'src/server/game/Scripting/ScriptReloadMgr.cpp')
-rw-r--r-- | src/server/game/Scripting/ScriptReloadMgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Scripting/ScriptReloadMgr.cpp b/src/server/game/Scripting/ScriptReloadMgr.cpp index 1df8b5705db..bfc4b226679 100644 --- a/src/server/game/Scripting/ScriptReloadMgr.cpp +++ b/src/server/game/Scripting/ScriptReloadMgr.cpp @@ -41,6 +41,7 @@ ScriptReloadMgr* ScriptReloadMgr::instance() #include "Config.h" #include "GitRevision.h" #include "CryptoHash.h" +#include "Duration.h" #include "Log.h" #include "MPSCQueue.h" #include "Regex.h" @@ -1035,7 +1036,7 @@ private: // Wait for the current build job to finish, if the job finishes in time // evaluate it and continue with the next one. if (_build_job->GetProcess()->GetFutureResult(). - wait_for(std::chrono::seconds(0)) == std::future_status::ready) + wait_for(0s) == std::future_status::ready) ProcessReadyBuildJob(); else return; // Return when the job didn't finish in time |