mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-21 21:20:04 +00:00
Add missing mutex
This commit is contained in:
parent
c11cfebdb1
commit
837f109752
@ -208,6 +208,8 @@ void Database::addBlock(int playerId, int blockedPlayerId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Database::removeBlock(int playerId, int blockedPlayerId) {
|
void Database::removeBlock(int playerId, int blockedPlayerId) {
|
||||||
|
std::lock_guard<std::mutex> lock(dbCrit);
|
||||||
|
|
||||||
const char* sql = R"(
|
const char* sql = R"(
|
||||||
DELETE FROM Blocks
|
DELETE FROM Blocks
|
||||||
WHERE PlayerID = ? AND BlockedPlayerID = ?;
|
WHERE PlayerID = ? AND BlockedPlayerID = ?;
|
||||||
|
Loading…
Reference in New Issue
Block a user