From 6821195cf893f17b77cf6e3bb8bb07645581cd6e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 25 Jan 2012 21:41:54 +0000 Subject: [PATCH] -call client last, so that if the client calls disconnect, it does not mess us up --- src/vpn/vpn_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vpn/vpn_api.c b/src/vpn/vpn_api.c index 81282960e..31d17f8c9 100644 --- a/src/vpn/vpn_api.c +++ b/src/vpn/vpn_api.c @@ -219,6 +219,9 @@ receive_response (void *cls, reconnect (vh); return; } + GNUNET_CLIENT_receive (vh->client, + &receive_response, vh, + GNUNET_TIME_UNIT_FOREVER_REL); for (rr = vh->rr_head; NULL != rr; rr = rr->next) { if (rr->request_id == rm->request_id) @@ -233,9 +236,6 @@ receive_response (void *cls, break; } } - GNUNET_CLIENT_receive (vh->client, - &receive_response, vh, - GNUNET_TIME_UNIT_FOREVER_REL); } -- 2.25.1