[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35023 - gnunet/src/rps
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35023 - gnunet/src/rps |
Date: |
Wed, 28 Jan 2015 14:39:47 +0100 |
Author: ch3
Date: 2015-01-28 14:39:47 +0100 (Wed, 28 Jan 2015)
New Revision: 35023
Modified:
gnunet/src/rps/gnunet-service-rps.c
Log:
fixed wrong cancellation
Modified: gnunet/src/rps/gnunet-service-rps.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps.c 2015-01-27 16:09:09 UTC (rev 35022)
+++ gnunet/src/rps/gnunet-service-rps.c 2015-01-28 13:39:47 UTC (rev 35023)
@@ -509,6 +509,8 @@
struct GNUNET_PeerIdentity *peer;
struct PeerContext *peer_ctx;
+ // TODO check
+
peer = (struct GNUNET_PeerIdentity *) cls;
peer_ctx = get_peer_ctx (peer_map, peer);
peer_ctx->peer_flags |= LIVING;
@@ -526,7 +528,11 @@
GNUNET_free (peer);
- buf = NULL;
+ //if (NULL != peer_ctx->is_live_task)
+ //{
+ // GNUNET_CADET_notify_transmit_ready_cancel (peer_ctx->is_live_task);
+ // peer_ctx->is_live_task = NULL; // needed?
+ //}
return 0;
}
@@ -1379,7 +1385,10 @@
GNUNET_MQ_destroy (peer_ctx->mq);
if ( NULL != peer_ctx->is_live_task)
+ {
GNUNET_CADET_notify_transmit_ready_cancel (peer_ctx->is_live_task);
+ peer_ctx->is_live_task = NULL;
+ }
if ( NULL != peer_ctx->send_channel)
GNUNET_CADET_channel_destroy (peer_ctx->send_channel);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35023 - gnunet/src/rps,
gnunet <=