- Stop trying to find more adapters if it failed to avoid spamming the debug log
[reactos.git] / reactos / base / services / dhcp / dispatch.c
index 3839c20..76ac90e 100644 (file)
@@ -77,7 +77,10 @@ dispatch(void)
          * a timeout registered, time out the select call then.
          */
     another:
-        AdapterDiscover();
+        if (!AdapterDiscover()) {
+            AdapterStop();
+            break;
+        }
 
         for (l = protocols, nfds = 0; l; l = l->next)
             nfds++;