Check that you are not present in trail twice
[oweals/gnunet.git] / src / core / gnunet-service-core_sessions.c
index 79a609566d4ada32c2a1d9497be2a0ff04c35927..551c5f2c5c2521eca27b0c83776258393f60ab50 100644 (file)
@@ -329,7 +329,8 @@ GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer,
                          GNUNET_CONTAINER_multipeermap_size (sessions),
                          GNUNET_NO);
   GSC_CLIENTS_notify_clients_about_neighbour (peer,
-                                              NULL, session->tmap);
+                                              NULL,
+                                              session->tmap);
   start_typemap_task (session);
 }
 
@@ -422,7 +423,8 @@ notify_client_about_session (void *cls,
   struct GSC_Client *client = cls;
   struct Session *session = value;
 
-  GSC_CLIENTS_notify_client_about_neighbour (client, &session->peer,
+  GSC_CLIENTS_notify_client_about_neighbour (client,
+                                             &session->peer,
                                              NULL,      /* old TMAP: none */
                                              session->tmap);
   return GNUNET_OK;
@@ -676,6 +678,7 @@ try_transmission (struct Session *session)
   {
     /* never solicit more, we have critical messages to process */
     excess = GNUNET_NO;
+    maxpc = GNUNET_CORE_PRIO_BACKGROUND;
   }
   now = GNUNET_TIME_absolute_get ();
   if ( ( (GNUNET_YES == excess) ||