static void
place_cleanup (struct GNUNET_SOCIAL_Place *plc)
{
- struct GNUNET_HashCode place_pub_hash;
-
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "place_cleanup\n");
-
- GNUNET_CRYPTO_hash (&plc->pub_key, sizeof (plc->pub_key), &place_pub_hash);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "cleaning up place %p\n",
+ plc);
if (NULL != plc->tmit)
{
GNUNET_PSYC_transmit_destroy (plc->tmit);
static void
place_disconnect (struct GNUNET_SOCIAL_Place *plc)
{
- struct GNUNET_HashCode place_pub_hash;
-
- GNUNET_CRYPTO_hash (&plc->pub_key,
- sizeof (plc->pub_key),
- &place_pub_hash);
place_cleanup (plc);
}
void *notify_data_cls,
enum GNUNET_SOCIAL_AnnounceFlags flags)
{
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"PSYC_transmit_message for host, method: %s\n",
method_name);
if (GNUNET_OK ==
GNUNET_ContinuationCallback disconnect_cb,
void *disconnect_cls)
{
+ if (NULL == app) return;
+
app->disconnect_cb = disconnect_cb;
app->disconnect_cls = disconnect_cls;