From: Sree Harsha Totakura Date: Tue, 17 Apr 2012 14:41:50 +0000 (+0000) Subject: -logging in mesh peer disconnect handler X-Git-Tag: initial-import-from-subversion-38251~13909 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d3d06c3d996d731ce8142c7f725a98e67facc0d;p=oweals%2Fgnunet.git -logging in mesh peer disconnect handler --- 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); }