X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fsocial%2Fsocial_api.c;h=89843831be02164972b6c04c6877066d88156391;hb=0120859e1ea2f0591602f446d4bc054e9230c801;hp=48e376404fda5638ed9476ad38df77f7515a16a6;hpb=682bf4377d630f63912c0cdc7f612e9df9c82a33;p=oweals%2Fgnunet.git diff --git a/src/social/social_api.c b/src/social/social_api.c index 48e376404..89843831b 100644 --- a/src/social/social_api.c +++ b/src/social/social_api.c @@ -397,12 +397,9 @@ guest_cleanup (struct GNUNET_SOCIAL_Guest *gst) 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); @@ -433,11 +430,6 @@ place_cleanup (struct GNUNET_SOCIAL_Place *plc) 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); } @@ -1515,7 +1507,7 @@ GNUNET_SOCIAL_host_announce (struct GNUNET_SOCIAL_Host *hst, 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 == @@ -2781,6 +2773,8 @@ GNUNET_SOCIAL_app_disconnect (struct GNUNET_SOCIAL_App *app, GNUNET_ContinuationCallback disconnect_cb, void *disconnect_cls) { + if (NULL == app) return; + app->disconnect_cb = disconnect_cb; app->disconnect_cls = disconnect_cls;