HTTPServer: Attempt to catch more errors

This commit is contained in:
Lion Kortlepel
2022-04-28 14:04:54 +02:00
parent 0761036c8c
commit 0979c8b1e4
4 changed files with 20 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ void TClient::ClearCars() {
int TClient::GetOpenCarID() const {
int OpenID = 0;
bool found;
std::unique_lock lock(mVehicleDataMutex);
do {
found = true;
for (auto& v : mVehicleData) {