From: Christian Grothoff Date: Wed, 25 Jan 2012 21:41:54 +0000 (+0000) Subject: -call client last, so that if the client calls disconnect, it does not mess us up X-Git-Tag: initial-import-from-subversion-38251~15090 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6821195cf893f17b77cf6e3bb8bb07645581cd6e;p=oweals%2Fgnunet.git -call client last, so that if the client calls disconnect, it does not mess us up --- 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); }