[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 05/64: we were on the wood way
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 05/64: we were on the wood way |
Date: |
Sat, 30 Dec 2017 20:57:50 +0100 |
This is an automated email from the git hooks/post-receive script.
lurchi pushed a commit to branch master
in repository gnunet.
commit 7ca96c1ceb078bcee0da73217b7019c1329939eb
Author: lurchi <address@hidden>
AuthorDate: Fri Oct 13 22:00:26 2017 +0200
we were on the wood way
---
src/social/social_api.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/social/social_api.c b/src/social/social_api.c
index a190b2f26..4b3655de4 100644
--- a/src/social/social_api.c
+++ b/src/social/social_api.c
@@ -1062,6 +1062,8 @@ place_cleanup (struct GNUNET_SOCIAL_Place *plc)
}
if (NULL != plc->mq)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "destroying MQ (place_cleanup)\n");
GNUNET_MQ_destroy (plc->mq);
plc->mq = NULL;
}
@@ -1085,11 +1087,10 @@ place_disconnect (struct GNUNET_SOCIAL_Place *plc)
plc);
if (NULL != plc->mq)
{
- //struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (plc->mq);
- if (GNUNET_MQ_get_length (plc->mq) > 0)
+ struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (plc->mq);
+ if (NULL != env)
{
- struct GNUNET_MQ_Envelope *env = GNUNET_MQ_get_last_envelope (plc->mq);
- GNUNET_MQ_notify_sent (env, (GNUNET_SCHEDULER_TaskCallback)
place_disconnect, plc);
+ GNUNET_MQ_notify_sent (env, (GNUNET_SCHEDULER_TaskCallback)
place_cleanup, plc);
}
else
{
@@ -1151,6 +1152,8 @@ host_disconnected (void *cls, enum GNUNET_MQ_Error error)
}
if (NULL != plc->mq)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "destroying MQ (host_disconnected)\n");
GNUNET_MQ_destroy (plc->mq);
plc->mq = NULL;
}
@@ -1659,6 +1662,8 @@ guest_disconnected (void *cls, enum GNUNET_MQ_Error error)
}
if (NULL != plc->mq)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "destroying MQ (guest_disconnected)\n");
GNUNET_MQ_destroy (plc->mq);
plc->mq = NULL;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (d01f1bd83 -> 5c8feda7f), gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 02/64: start social service before running the test (not sure if needed), gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 06/64: Merge branch 'fix_social' of ssh://gnunet.org/gnunet into fix_social, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 07/64: added mq logging, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 01/64: trying to fix test_social and social service with a lot of debug outputs, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 05/64: we were on the wood way,
gnunet <=
- [GNUnet-SVN] [gnunet] 03/64: don't call GNUNET_SERVICE_client_continue twice; maybe fix bug resulting from destroying MQ too early, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 04/64: -we no enter to place, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 13/64: clarify use of client_drop, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 17/64: logging, cosmetic fixes, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 09/64: misc social hacking with Lurchi, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 18/64: minor style fix, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 10/64: added logging, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 14/64: handle service disconnect without crashing if reconnect fails, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 15/64: better logging of message processing errors in mq handling, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 08/64: added logging, gnunet, 2017/12/30