aboutsummaryrefslogtreecommitdiff
path: root/src/social/test_social.c
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-08-03 23:20:39 +0000
committerGabor X Toth <*@tg-x.net>2016-08-03 23:20:39 +0000
commit50f6a48fbf936d5a4ba272ec5d8f11ff8cbc31e3 (patch)
treeaafcc96c2b14e9a330b0deaec0c0bfd092ddc6f6 /src/social/test_social.c
parent7d83c569d7ea76376a7bc97db58a4ad912dfad8c (diff)
downloadgnunet-50f6a48fbf936d5a4ba272ec5d8f11ff8cbc31e3.tar.gz
gnunet-50f6a48fbf936d5a4ba272ec5d8f11ff8cbc31e3.zip
social fixes
Diffstat (limited to 'src/social/test_social.c')
-rw-r--r--src/social/test_social.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/social/test_social.c b/src/social/test_social.c
index 71519bf59..6a2768030 100644
--- a/src/social/test_social.c
+++ b/src/social/test_social.c
@@ -404,6 +404,11 @@ app_connected (void *cls)
404{ 404{
405 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 405 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
406 "App connected: %p\n", cls); 406 "App connected: %p\n", cls);
407 if (NULL != core)
408 {
409 GNUNET_CORE_disconnect (core);
410 core = NULL;
411 }
407} 412}
408 413
409 414
@@ -1269,12 +1274,6 @@ host_enter ()
1269static void 1274static void
1270id_host_created (void *cls, const char *emsg) 1275id_host_created (void *cls, const char *emsg)
1271{ 1276{
1272 if (NULL != core)
1273 {
1274 GNUNET_CORE_disconnect (core);
1275 core = NULL;
1276 }
1277
1278 if (NULL != emsg) 1277 if (NULL != emsg)
1279 { 1278 {
1280 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1279 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,