diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-10 01:22:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-10 01:22:26 +0000 |
commit | 031f8602639abb222302ce1c3f2fabf7673d49f7 (patch) | |
tree | ee97435a863d42687b380f402dc7433c6ff101f5 /src/transport/transport-testing-main.c | |
parent | 53f0f13a919c33f6bfcb7823ee4908084b259f20 (diff) | |
download | gnunet-031f8602639abb222302ce1c3f2fabf7673d49f7.tar.gz gnunet-031f8602639abb222302ce1c3f2fabf7673d49f7.zip |
-adapt disconnect test to new testing lib
Diffstat (limited to 'src/transport/transport-testing-main.c')
-rw-r--r-- | src/transport/transport-testing-main.c | 7 |
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) | |||
93 | } | 93 | } |
94 | for (unsigned int i=0;i<ccc->num_peers;i++) | 94 | for (unsigned int i=0;i<ccc->num_peers;i++) |
95 | { | 95 | { |
96 | GNUNET_TRANSPORT_TESTING_stop_peer (ccc->p[i]); | 96 | if (NULL != ccc->p[i]) |
97 | ccc->p[i] = NULL; | 97 | { |
98 | GNUNET_TRANSPORT_TESTING_stop_peer (ccc->p[i]); | ||
99 | ccc->p[i] = NULL; | ||
100 | } | ||
98 | } | 101 | } |
99 | } | 102 | } |
100 | 103 | ||