diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-26 15:44:24 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-26 15:44:24 -0700 |
commit | 04169b51505bc41f70ad7b8797e8e4d5376bb9c7 (patch) | |
tree | 226ad69d2e4648beb8cb82da8dbce2ce1f4f0a98 /node | |
parent | daaec84c6be11b57572ff57c97efd993385890fd (diff) | |
download | infinitytier-04169b51505bc41f70ad7b8797e8e4d5376bb9c7.tar.gz infinitytier-04169b51505bc41f70ad7b8797e8e4d5376bb9c7.zip |
If I want it to pick the first, actually picking the first is helpful.
Diffstat (limited to 'node')
-rw-r--r-- | node/Peer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index dcc8d4ea..f8ff9ba6 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -117,7 +117,7 @@ bool Peer::send(const RuntimeEnvironment *_r,const void *data,unsigned int len,u std::vector<Path>::iterator bestPath = p; while (++p != _paths.end()) { uint64_t lr = p->lastReceived(); - if (lr >= bestPathLastReceived) { + if (lr > bestPathLastReceived) { bestPathLastReceived = lr; bestPath = p; } |