1
0
Fork 0

Hold an owning ref to the HTTTP request.

This commit is contained in:
James Turner 2011-10-21 12:58:19 +01:00
parent c5cbc57895
commit 1b3ea65b5e

View file

@ -576,6 +576,7 @@ int main(int argc, char *argv[])
try {
MetarRequest* mr = new MetarRequest(argv[i]);
HTTP::Request_ptr own(mr);
http.makeRequest(mr);
// spin until the request completes, fails or times out