[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24141 - gnunet/src/stream
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24141 - gnunet/src/stream |
Date: |
Sun, 30 Sep 2012 14:34:25 +0200 |
Author: harsha
Date: 2012-09-30 14:34:25 +0200 (Sun, 30 Sep 2012)
New Revision: 24141
Modified:
gnunet/src/stream/test_stream_2peers.c
Log:
clean exit while aborting
Modified: gnunet/src/stream/test_stream_2peers.c
===================================================================
--- gnunet/src/stream/test_stream_2peers.c 2012-09-30 12:04:32 UTC (rev
24140)
+++ gnunet/src/stream/test_stream_2peers.c 2012-09-30 12:34:25 UTC (rev
24141)
@@ -241,7 +241,10 @@
GNUNET_SCHEDULER_cancel (abort_task);
if (NULL != peer1.socket)
GNUNET_STREAM_close (peer1.socket);
- GNUNET_TESTBED_operation_done (peer1.op);
+ if (NULL != peer1.op)
+ GNUNET_TESTBED_operation_done (peer1.op);
+ else
+ GNUNET_SCHEDULER_shutdown (); /* For shutting down testbed */
}
@@ -461,7 +464,10 @@
{
lsocket = op_result;
GNUNET_STREAM_listen_close (lsocket);
- GNUNET_TESTBED_operation_done (peer2.op);
+ if (NULL != peer2.op)
+ GNUNET_TESTBED_operation_done (peer2.op);
+ else
+ GNUNET_SCHEDULER_shutdown ();
return;
}
if (&peer2 == cls)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24141 - gnunet/src/stream,
gnunet <=