[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33026 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33026 - gnunet/src/mesh |
Date: |
Thu, 10 Apr 2014 15:05:54 +0200 |
Author: bartpolot
Date: 2014-04-10 15:05:53 +0200 (Thu, 10 Apr 2014)
New Revision: 33026
Modified:
gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- skip all metadata update on destroyed connections
Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c 2014-04-10 13:05:53 UTC
(rev 33025)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c 2014-04-10 13:05:53 UTC
(rev 33026)
@@ -587,7 +587,6 @@
pid = 0;
LOG (GNUNET_ERROR_TYPE_DEBUG, " %ssent %s %s\n",
sent ? "" : "not ", GM_f2s (fwd), GM_m2s (type));
- LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);
if (NULL != q)
{
pid = q->pid;
@@ -608,6 +607,13 @@
{
forced = GNUNET_NO;
}
+ if (NULL == c)
+ {
+ GNUNET_break (type == GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN ||
+ type == GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY);
+ return;
+ }
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);
c->pending_messages--;
if (GNUNET_YES == c->destroy && 0 == c->pending_messages)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33026 - gnunet/src/mesh,
gnunet <=