Needed to comment out time limitations

Fork of DHT by Wim De Roeve

Files at this revision

API Documentation at this revision

Comitter:
LBradJob
Date:
Tue Nov 07 21:31:28 2017 +0000
Parent:
0:9b5b3200688f
Commit message:
commented out time limitations. Had trouble when starting up

Changed in this revision

DHT.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9b5b3200688f -r f7551b7727db DHT.cpp
--- a/DHT.cpp	Mon Jul 09 19:47:43 2012 +0000
+++ b/DHT.cpp	Tue Nov 07 21:31:28 2017 +0000
@@ -56,7 +56,7 @@
         bitTimes[i] = 0;
     }
 
-    if (!_firsttime) {
+    /*if (!_firsttime) {
         if (int(currentTime - _lastReadTime) < 2) {
             err = ERROR_NO_PATIENCE;
             return err;
@@ -64,7 +64,7 @@
     } else {
         _firsttime=false;
         _lastReadTime=currentTime;
-    }
+    }*/
     retryCount = 0;
 
     do {
@@ -141,6 +141,7 @@
 
     } else {
         err = ERROR_CHECKSUM;
+        _lastReadTime = currentTime;
     }
 
     return err;