Procházet zdrojové kódy

Fix inverted sense bug.

Adam Ierymenko před 10 roky
rodič
revize
0fd15d9cf3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      node/Peer.hpp

+ 1 - 1
node/Peer.hpp

@@ -449,7 +449,7 @@ public:
 			++_directPathPushCutoffCount;
 		else _directPathPushCutoffCount = 0;
 		_lastDirectPathPushReceive = now;
-		return (_directPathPushCutoffCount >= ZT_PUSH_DIRECT_PATHS_CUTOFF_LIMIT);
+		return (_directPathPushCutoffCount < ZT_PUSH_DIRECT_PATHS_CUTOFF_LIMIT);
 	}
 
 	/**