Add missing mutex

This commit is contained in:
Gent Semaj 2024-02-03 03:13:43 -05:00
parent c11cfebdb1
commit 837f109752
Signed by untrusted user: ycc
GPG Key ID: 2D76C57BF6BEADC4

View File

@ -208,6 +208,8 @@ void Database::addBlock(int playerId, int blockedPlayerId) {
}
void Database::removeBlock(int playerId, int blockedPlayerId) {
std::lock_guard<std::mutex> lock(dbCrit);
const char* sql = R"(
DELETE FROM Blocks
WHERE PlayerID = ? AND BlockedPlayerID = ?;