mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Misc: Pass std::chrono types by value everywhere.
(cherry picked from commit 2ef9d301f0)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user