From ff2d5d74aeb6fd5607b9aad2179b193597b84317 Mon Sep 17 00:00:00 2001 From: Anonymous275 Date: Wed, 27 May 2020 10:24:23 +0300 Subject: [PATCH] minor adjustments --- src/Resources.cpp | 11 +++++------ src/heartbeat.cpp | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Resources.cpp b/src/Resources.cpp index 26785bc..5369677 100644 --- a/src/Resources.cpp +++ b/src/Resources.cpp @@ -12,16 +12,15 @@ std::string FileSizes; void LuaMain(std::string Path); void HandleResources(std::string path){ - LuaMain(path); struct stat info{}; if(stat( path.c_str(), &info) != 0){ fs::create_directory(path); - path += "/Client"; - if(stat( path.c_str(), &info) != 0) { - fs::create_directory(path); - } } - + LuaMain(path); + path += "/Client"; + if(stat( path.c_str(), &info) != 0) { + fs::create_directory(path); + } for (const auto & entry : fs::directory_iterator(path)){ int pos = entry.path().string().find(".zip"); if(pos != std::string::npos){ diff --git a/src/heartbeat.cpp b/src/heartbeat.cpp index 11961b2..3ab9374 100644 --- a/src/heartbeat.cpp +++ b/src/heartbeat.cpp @@ -39,7 +39,7 @@ void Heartbeat() if(R.find_first_not_of("20") != std::string::npos){ //Backend system refused server startup! error(HTA("4261636b656e642073797374656d20726566757365642073657276657221")); - std::this_thread::sleep_for(std::chrono::seconds(5)); + std::this_thread::sleep_for(std::chrono::seconds(3)); exit(-1); } //Server Authenticated