mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
[Server] FIx deadlock
This commit is contained in:
parent
c2ce2f2ce7
commit
a0b71eda23
1 changed files with 6 additions and 5 deletions
|
@ -94,11 +94,12 @@ void MasterClient::SetRuleValue(std::string key, double value)
|
|||
mutexData.lock();
|
||||
if (queryData.rules.find(key) == queryData.rules.end() || queryData.rules[key].type != 'v'
|
||||
|| queryData.rules[key].val != value)
|
||||
return;
|
||||
ServerRule rule;
|
||||
rule.str = value;
|
||||
rule.type = 'v';
|
||||
queryData.rules.insert({key, rule});
|
||||
{
|
||||
ServerRule rule;
|
||||
rule.val = value;
|
||||
rule.type = 'v';
|
||||
queryData.rules.insert({key, rule});
|
||||
}
|
||||
mutexData.unlock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue