reconnect_task pointer must be NULLed when executed
authorlurchi <lurchi@strangeplace.net>
Sat, 6 Jan 2018 23:57:24 +0000 (00:57 +0100)
committerlurchi <lurchi@strangeplace.net>
Sat, 6 Jan 2018 23:57:24 +0000 (00:57 +0100)
src/psycstore/psycstore_api.c

index 16f4a1ae98f362480fec0ab6e362a539d3ba9a2f..5a4865dcef6c37529fc93fcbb021e89f2c09f542 100644 (file)
@@ -362,6 +362,9 @@ do_connect (struct GNUNET_PSYCSTORE_Handle *h)
 static void
 reconnect (void *cls)
 {
+  struct GNUNET_PSYCSTORE_Handle *h = cls;
+
+  h->reconnect_task = NULL;
   do_connect (cls);
 }