summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing-main.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-10 01:22:26 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-10 01:22:26 +0000
commit031f8602639abb222302ce1c3f2fabf7673d49f7 (patch)
treeee97435a863d42687b380f402dc7433c6ff101f5 /src/transport/transport-testing-main.c
parent53f0f13a919c33f6bfcb7823ee4908084b259f20 (diff)
-adapt disconnect test to new testing lib
Diffstat (limited to 'src/transport/transport-testing-main.c')
-rw-r--r--src/transport/transport-testing-main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/transport-testing-main.c b/src/transport/transport-testing-main.c
index 8dfd51074..0b3840296 100644
--- a/src/transport/transport-testing-main.c
+++ b/src/transport/transport-testing-main.c
@@ -93,8 +93,11 @@ do_shutdown (void *cls)
}
for (unsigned int i=0;i<ccc->num_peers;i++)
{
- GNUNET_TRANSPORT_TESTING_stop_peer (ccc->p[i]);
- ccc->p[i] = NULL;
+ if (NULL != ccc->p[i])
+ {
+ GNUNET_TRANSPORT_TESTING_stop_peer (ccc->p[i]);
+ ccc->p[i] = NULL;
+ }
}
}