Browse Source

Nominate newly-learned paths to bond

Joseph Henry 3 years ago
parent
commit
a4b98518e3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      node/Peer.cpp

+ 4 - 0
node/Peer.cpp

@@ -146,6 +146,10 @@ void Peer::received(
 					_paths[replacePath].lr = now;
 					_paths[replacePath].p = path;
 					_paths[replacePath].priority = 1;
+					Mutex::Lock _l(_bond_m);
+					if(_bond) {
+						_bond->nominatePathToBond(_paths[replacePath].p, now);
+					}
 				}
 			} else {
 				Mutex::Lock ltl(_lastTriedPath_m);