Skip to content

Commit

Permalink
Add missing mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
yungcomputerchair committed Feb 3, 2024
1 parent c11cfeb commit 837f109
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db/shard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ?;
Expand Down

0 comments on commit 837f109

Please sign in to comment.