fix rps profiler: mark handle unusable after closing it
authorJulius Bünger <buenger@mytum.de>
Tue, 3 Jul 2018 19:09:47 +0000 (21:09 +0200)
committerJulius Bünger <buenger@mytum.de>
Tue, 3 Jul 2018 19:09:47 +0000 (21:09 +0200)
src/rps/gnunet-rps-profiler.c

index 54dc7d65ee820ba18f86c315239b47912a4a47db..f75f9794f8979511730623f0b15ceef9b4aef390 100644 (file)
@@ -900,6 +900,7 @@ shutdown_op (void *cls)
     if (NULL != rps_peers[i].rps_handle)
     {
       GNUNET_RPS_disconnect (rps_peers[i].rps_handle);
+      rps_peers[i].rps_handle = NULL;
     }
     if (NULL != rps_peers[i].op)
     {