rps service fix: send the updated view to client
authorJulius Bünger <buenger@mytum.de>
Fri, 6 Apr 2018 08:44:05 +0000 (10:44 +0200)
committerJulius Bünger <buenger@mytum.de>
Fri, 6 Apr 2018 08:45:11 +0000 (10:45 +0200)
src/rps/gnunet-service-rps.c

index 5b7f78b3fe5f36b4d8663042a4509e9ddf3b478a..3416fc10ca0ca5d2b3f97440f861046a5f1d7110 100644 (file)
@@ -2285,7 +2285,6 @@ hist_update (void *cls,
 {
   unsigned int i;
 
-  clients_notify_view_update();
   for (i = 0; i < num_peers; i++)
   {
     (void) insert_in_view (&ids[i]);
@@ -2293,6 +2292,7 @@ hist_update (void *cls,
              "+%s\t(hist)",
              GNUNET_i2s_full (ids));
   }
+  clients_notify_view_update();
 }