aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/vpn_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-25 21:41:54 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-25 21:41:54 +0000
commit6821195cf893f17b77cf6e3bb8bb07645581cd6e (patch)
tree1bf3969dd10307b14fc1543bd50251aa2d41ce11 /src/vpn/vpn_api.c
parentf1315f9b2285453a45626ee662aa3fc58a90a177 (diff)
downloadgnunet-6821195cf893f17b77cf6e3bb8bb07645581cd6e.tar.gz
gnunet-6821195cf893f17b77cf6e3bb8bb07645581cd6e.zip
-call client last, so that if the client calls disconnect, it does not mess us up
Diffstat (limited to 'src/vpn/vpn_api.c')
-rw-r--r--src/vpn/vpn_api.c6
1 files 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,
219 reconnect (vh); 219 reconnect (vh);
220 return; 220 return;
221 } 221 }
222 GNUNET_CLIENT_receive (vh->client,
223 &receive_response, vh,
224 GNUNET_TIME_UNIT_FOREVER_REL);
222 for (rr = vh->rr_head; NULL != rr; rr = rr->next) 225 for (rr = vh->rr_head; NULL != rr; rr = rr->next)
223 { 226 {
224 if (rr->request_id == rm->request_id) 227 if (rr->request_id == rm->request_id)
@@ -233,9 +236,6 @@ receive_response (void *cls,
233 break; 236 break;
234 } 237 }
235 } 238 }
236 GNUNET_CLIENT_receive (vh->client,
237 &receive_response, vh,
238 GNUNET_TIME_UNIT_FOREVER_REL);
239} 239}
240 240
241 241