better
authorChristian Grothoff <christian@grothoff.org>
Tue, 18 May 2010 13:09:13 +0000 (13:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 18 May 2010 13:09:13 +0000 (13:09 +0000)
src/fs/gnunet-service-fs.c

index ec588382d64810cd3e9a3859c038e9f165cf7965..fb5b9c84c9e410d62f2310a898a7ea089a720aad 100644 (file)
@@ -1223,18 +1223,17 @@ peer_disconnect_handler (void *cls,
            {
              GNUNET_PEER_change_rc (pos->target_list[i], -1);
              pos->target_list[i] = 0;
-             if (pos->used_targets >= GNUNET_CONTAINER_multihashmap_size (connected_peers))
-               {
-                 delete_migration_block (pos);
-                 consider_migration_gathering ();
-                 continue;
-               }
-             GNUNET_CONTAINER_multihashmap_iterate (connected_peers,
-                                                    &consider_migration,
-                                                    pos);
-             break;
-           }
+            }
+         }
+      if (pos->used_targets >= GNUNET_CONTAINER_multihashmap_size (connected_peers))
+       {
+         delete_migration_block (pos);
+         consider_migration_gathering ();
+          continue;
        }
+      GNUNET_CONTAINER_multihashmap_iterate (connected_peers,
+                                            &consider_migration,
+                                            pos);
     }
 
   GNUNET_PEER_change_rc (cp->pid, -1);