fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 15 Mar 2011 13:37:44 +0000 (13:37 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 15 Mar 2011 13:37:44 +0000 (13:37 +0000)
src/fs/gnunet-service-fs_push.c

index 28406085b3fcb5bc0cb2ae760bab8de41f1d76ef..da781bc071991345bbfb8212bb2f0bb0b760b4d8 100644 (file)
@@ -372,9 +372,10 @@ find_content (struct MigrationReadyPeer *mrp)
        }
       pos = pos->next;
     }
-  if ( (NULL == best) &&
-       (mig_size >= MAX_MIGRATION_QUEUE) )
+  if (NULL == best) 
     {
+      if (mig_size < MAX_MIGRATION_QUEUE)
+       return; /* will fill up eventually... */
       /* failed to find migration target AND
         queue is full, purge most-forwarded
         block from queue to make room for more */