aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_lc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-07 21:23:24 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-07 21:23:24 +0000
commit2a2708dde105c46cee19dd09ee792da2e6c93f8f (patch)
tree59f664d8a004a149307e69339f28959eea9c6a58 /src/fs/gnunet-service-fs_lc.c
parent27704a1ca7d0fee03008b3f82ed2dd9495e65103 (diff)
downloadgnunet-2a2708dde105c46cee19dd09ee792da2e6c93f8f.tar.gz
gnunet-2a2708dde105c46cee19dd09ee792da2e6c93f8f.zip
fixing #3568
Diffstat (limited to 'src/fs/gnunet-service-fs_lc.c')
-rw-r--r--src/fs/gnunet-service-fs_lc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fs/gnunet-service-fs_lc.c b/src/fs/gnunet-service-fs_lc.c
index 0f1d69198..ef30ba32a 100644
--- a/src/fs/gnunet-service-fs_lc.c
+++ b/src/fs/gnunet-service-fs_lc.c
@@ -221,7 +221,7 @@ client_request_destroy (void *cls,
221 * @param last_transmission when was the last time we've tried to download this block? (FOREVER if unknown) 221 * @param last_transmission when was the last time we've tried to download this block? (FOREVER if unknown)
222 * @param type type of the block 222 * @param type type of the block
223 * @param data response data, NULL on request expiration 223 * @param data response data, NULL on request expiration
224 * @param data_len number of bytes in data 224 * @param data_len number of bytes in @e data
225 */ 225 */
226static void 226static void
227client_response_handler (void *cls, enum GNUNET_BLOCK_EvaluationResult eval, 227client_response_handler (void *cls, enum GNUNET_BLOCK_EvaluationResult eval,
@@ -240,8 +240,10 @@ client_response_handler (void *cls, enum GNUNET_BLOCK_EvaluationResult eval,
240 240
241 if (NULL == data) 241 if (NULL == data)
242 { 242 {
243 /* ugh, request 'timed out' -- how can this be? */ 243 /* local-only request, with no result, clean up. */
244 GNUNET_break (0); 244 if (GNUNET_SCHEDULER_NO_TASK == cr->kill_task)
245 cr->kill_task = GNUNET_SCHEDULER_add_now (&client_request_destroy,
246 cr);
245 return; 247 return;
246 } 248 }
247 prd = GSF_pending_request_get_data_ (pr); 249 prd = GSF_pending_request_get_data_ (pr);