[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25055 - gnunet/src/stream
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25055 - gnunet/src/stream |
Date: |
Mon, 19 Nov 2012 16:19:00 +0100 |
Author: harsha
Date: 2012-11-19 16:18:59 +0100 (Mon, 19 Nov 2012)
New Revision: 25055
Modified:
gnunet/src/stream/test_stream_local.c
Log:
- shutdown other socket also
Modified: gnunet/src/stream/test_stream_local.c
===================================================================
--- gnunet/src/stream/test_stream_local.c 2012-11-19 15:02:23 UTC (rev
25054)
+++ gnunet/src/stream/test_stream_local.c 2012-11-19 15:18:59 UTC (rev
25055)
@@ -208,6 +208,15 @@
shutdown_completion (void *cls,
int operation)
{
+ static int shutdowns;
+
+ if (++shutdowns == 1)
+ {
+ peer1.shutdown_handle = NULL;
+ peer2.shutdown_handle = GNUNET_STREAM_shutdown (peer2.socket, SHUT_RDWR,
+ &shutdown_completion, cls);
+ return;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "STREAM shutdown successful\n");
GNUNET_SCHEDULER_add_now (&do_close, cls);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25055 - gnunet/src/stream,
gnunet <=