aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-17 11:02:30 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-17 11:02:30 +0000
commit7c25b564245f1370b9cb10e579fdee23e7c9b213 (patch)
tree2f09bf49536f1a2124d3b942b125a63041189913 /src
parentcafd31da8554e8e62750a1bac926e193bb411ab3 (diff)
downloadgnunet-7c25b564245f1370b9cb10e579fdee23e7c9b213.tar.gz
gnunet-7c25b564245f1370b9cb10e579fdee23e7c9b213.zip
- fix cleaner
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-mesh-profiler.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c
index c0c7b8c93..2d128fcee 100644
--- a/src/mesh/gnunet-mesh-profiler.c
+++ b/src/mesh/gnunet-mesh-profiler.c
@@ -659,17 +659,12 @@ channel_cleaner (void *cls, const struct GNUNET_MESH_Channel *channel,
659 void *channel_ctx) 659 void *channel_ctx)
660{ 660{
661 long n = (long) cls; 661 long n = (long) cls;
662 struct MeshPeer *peer = &peers[n];
662 663
663 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 664 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
664 "Incoming channel disconnected at peer %ld\n", n); 665 "Incoming channel disconnected at peer %ld\n", n);
665 GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: %d\n", ok); 666 if (peer->ch == channel)
666 667 peer->ch = NULL;
667 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
668 {
669 GNUNET_SCHEDULER_cancel (disconnect_task);
670 disconnect_task = GNUNET_SCHEDULER_add_now (&disconnect_mesh_peers,
671 (void *) __LINE__);
672 }
673} 668}
674 669
675 670