diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-04 17:05:05 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-04 17:05:05 +0100 |
commit | f46c107278b96264b2e5302b4ebb050f73abf869 (patch) | |
tree | f2bd74b81fa33546e513b2eabf7a790eb3b631e8 /src/util/test_service.c | |
parent | e20eca334a33b8340524a8fa6ad1d6b606e1dd0c (diff) | |
download | gnunet-f46c107278b96264b2e5302b4ebb050f73abf869.tar.gz gnunet-f46c107278b96264b2e5302b4ebb050f73abf869.zip |
trying again to fix test_service timeout on v6 failure
Diffstat (limited to 'src/util/test_service.c')
-rw-r--r-- | src/util/test_service.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/util/test_service.c b/src/util/test_service.c index 3ffacb0a9..424a445bb 100644 --- a/src/util/test_service.c +++ b/src/util/test_service.c | |||
@@ -52,8 +52,11 @@ handle_recv (void *cls, | |||
52 | "Received client message...\n"); | 52 | "Received client message...\n"); |
53 | GNUNET_SERVICE_client_continue (client); | 53 | GNUNET_SERVICE_client_continue (client); |
54 | global_ret = 2; | 54 | global_ret = 2; |
55 | GNUNET_MQ_destroy (mq); | 55 | if (NULL != mq) |
56 | mq = NULL; | 56 | { |
57 | GNUNET_MQ_destroy (mq); | ||
58 | mq = NULL; | ||
59 | } | ||
57 | } | 60 | } |
58 | 61 | ||
59 | 62 | ||
@@ -106,6 +109,11 @@ static void | |||
106 | timeout_task (void *cls) | 109 | timeout_task (void *cls) |
107 | { | 110 | { |
108 | tt = NULL; | 111 | tt = NULL; |
112 | if (NULL != mq) | ||
113 | { | ||
114 | GNUNET_MQ_destroy (mq); | ||
115 | mq = NULL; | ||
116 | } | ||
109 | global_ret = 33; | 117 | global_ret = 33; |
110 | GNUNET_SCHEDULER_shutdown (); | 118 | GNUNET_SCHEDULER_shutdown (); |
111 | } | 119 | } |