mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-19 23:53:53 +00:00
Potential fix fro deadlock bug
This commit is contained in:
@ -228,9 +228,9 @@ void Peer::received(
|
|||||||
|
|
||||||
SharedPtr<Path> Peer::getAppropriatePath(int64_t now, bool includeExpired, int32_t flowId)
|
SharedPtr<Path> Peer::getAppropriatePath(int64_t now, bool includeExpired, int32_t flowId)
|
||||||
{
|
{
|
||||||
|
Mutex::Lock _l(_paths_m);
|
||||||
Mutex::Lock _l(_bond_m);
|
Mutex::Lock _l(_bond_m);
|
||||||
if (!_bond) {
|
if (!_bond) {
|
||||||
Mutex::Lock _l(_paths_m);
|
|
||||||
unsigned int bestPath = ZT_MAX_PEER_NETWORK_PATHS;
|
unsigned int bestPath = ZT_MAX_PEER_NETWORK_PATHS;
|
||||||
/**
|
/**
|
||||||
* Send traffic across the highest quality path only. This algorithm will still
|
* Send traffic across the highest quality path only. This algorithm will still
|
||||||
|
Reference in New Issue
Block a user