DnsQuery for NetworkSocketAPI

Fork of DnsQuery by NetworkSocketAPI

Revision:
16:a1bd52472dff
Parent:
15:e3a13efb2675
Child:
17:18a6b52be896
diff -r e3a13efb2675 -r a1bd52472dff DnsQuery.cpp
--- a/DnsQuery.cpp	Tue Apr 05 13:22:27 2016 -0500
+++ b/DnsQuery.cpp	Tue Apr 05 15:29:49 2016 -0500
@@ -196,11 +196,9 @@
 
     for (unsigned i = 0; i < DNS_COUNT; i++) {
         int32_t err = query(&sock, SocketAddress(DNS_IPS[0], 53), host, ip);
-        sock.close();
         return err;
     }
 
-    sock.close();
     return NSAPI_ERROR_DNS_FAILURE;
 }