mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-02 08:43:20 +00:00
fix ANDROID-52: synchronization bug with nodeMap
This commit is contained in:
parent
4861ec5a40
commit
f9528f1248
@ -688,10 +688,9 @@ JNIEXPORT void JNICALL Java_com_zerotier_sdk_Node_node_1delete(
|
|||||||
int64_t nodeId = (int64_t)id;
|
int64_t nodeId = (int64_t)id;
|
||||||
|
|
||||||
NodeMap::iterator found;
|
NodeMap::iterator found;
|
||||||
{
|
|
||||||
ZeroTier::Mutex::Lock lock(nodeMapMutex);
|
ZeroTier::Mutex::Lock lock(nodeMapMutex);
|
||||||
found = nodeMap.find(nodeId);
|
found = nodeMap.find(nodeId);
|
||||||
}
|
|
||||||
|
|
||||||
if(found != nodeMap.end())
|
if(found != nodeMap.end())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user