feat: move dumping to separate thread

This commit is contained in:
2026-04-09 23:16:12 -03:00
parent 76d581c419
commit a1a123054f
+3
View File
@@ -6,6 +6,7 @@
#include <random>
#include <vector>
#include <regex>
#include <thread>
#include <time.h>
@@ -102,6 +103,7 @@ bool Spoofer::parseCatalog(std::string data)
return false;
}
std::thread t([&data]() {
std::string outPath = utils::getExePath() + "catalog.json";
std::ofstream file(outPath);
if (file.is_open())
@@ -112,6 +114,7 @@ bool Spoofer::parseCatalog(std::string data)
}
else
Log::error("Unable to write to catalog.json");
});
try
{