do not forget to NULL reconnect_task
authorChristian Grothoff <christian@grothoff.org>
Wed, 27 Feb 2019 06:20:56 +0000 (07:20 +0100)
committerChristian Grothoff <christian@grothoff.org>
Wed, 27 Feb 2019 06:20:56 +0000 (07:20 +0100)
src/peerstore/peerstore_api.c

index 243e26c8b6c83c16daa6940c7b80d1d369f21ef0..02f3e287a664c41cab1897026d22a083aedd0f76 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     Copyright (C) 2013-2016 GNUnet e.V.
+     Copyright (C) 2013-2016, 2019 GNUnet e.V.
 
      GNUnet is free software: you can redistribute it and/or modify it
      under the terms of the GNU Affero General Public License as published
@@ -844,6 +844,7 @@ reconnect (void *cls)
   };
   struct GNUNET_MQ_Envelope *ev;
 
+  h->reconnect_task = NULL;
   LOG (GNUNET_ERROR_TYPE_DEBUG,
        "Reconnecting...\n");
   h->mq = GNUNET_CLIENT_connect (h->cfg,