From 2d3d06c3d996d731ce8142c7f725a98e67facc0d Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Tue, 17 Apr 2012 14:41:50 +0000 Subject: [PATCH] -logging in mesh peer disconnect handler --- src/stream/stream_api.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/stream/stream_api.c b/src/stream/stream_api.c index ef0065b22..a61437a2c 100644 --- a/src/stream/stream_api.c +++ b/src/stream/stream_api.c @@ -2637,7 +2637,13 @@ static void mesh_peer_disconnect_callback (void *cls, const struct GNUNET_PeerIdentity *peer) { - + struct GNUNET_STREAM_Socket *socket=cls; + + /* If the state is SHUTDOWN its ok; else set the state of the socket to SYSERR */ + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "%x: Other peer %x disconnected \n", + socket->our_id, + socket->other_peer); } -- 2.25.1