static void
end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
+ die_task = GNUNET_SCHEDULER_NO_TASK;
if (NULL != gns_handle)
{
GNUNET_GNS_disconnect(gns_handle);
die_task = GNUNET_SCHEDULER_NO_TASK;
}
-
GNUNET_NAMESTORE_disconnect (namestore_handle);
+ namestore_handle = NULL;
if (rd_count == 0)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
}
GNUNET_GNS_disconnect(gns_handle);
+ gns_handle = NULL;
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Shutting down peer!\n");
GNUNET_SCHEDULER_shutdown ();
}
char* pos;
struct GNUNET_CRYPTO_ShortHashAsciiEncoded hash_str;
-
gns_handle = GNUNET_GNS_connect(cfg);
if (NULL == gns_handle)