gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 01/03: rps profiler: additional checks and asserti


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 01/03: rps profiler: additional checks and assertions before disconnect from rps
Date: Thu, 05 Jul 2018 22:09:21 +0200

This is an automated email from the git hooks/post-receive script.

julius-buenger pushed a commit to branch master
in repository gnunet.

commit 411abad7976fb483fb29bddd8982cbe746502b95
Author: Julius Bünger <address@hidden>
AuthorDate: Thu Jul 5 22:05:16 2018 +0200

    rps profiler: additional checks and assertions before disconnect from rps
---
 src/rps/gnunet-rps-profiler.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c
index dcd72aef1..0427608f1 100644
--- a/src/rps/gnunet-rps-profiler.c
+++ b/src/rps/gnunet-rps-profiler.c
@@ -1177,8 +1177,12 @@ rps_disconnect_adapter (void *cls,
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "disconnect_adapter()\n");
   GNUNET_assert (NULL != peer);
-  GNUNET_RPS_disconnect (h);
-  peer->rps_handle = NULL;
+  if (NULL != peer->rps_handle)
+  {
+    GNUNET_assert (h == peer->rps_handle);
+    GNUNET_RPS_disconnect (h);
+    peer->rps_handle = NULL;
+  }
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]