changeset 525:88a05cc4c591 draft

Exit when no UPnP router found and fUseUPnP gets set to 0.
author Matt Corallo <matt@bluematt.me>
date Fri, 15 Apr 2011 00:37:50 +0200
parents 9cb4838fd262
children 2e60a5c85358
files net.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net.cpp
+++ b/net.cpp
@@ -939,7 +939,7 @@
         freeUPNPDevlist(devlist); devlist = 0;
         FreeUPNPUrls(&urls);
         loop {
-            if (fShutdown)
+            if (fShutdown || !fUseUPnP)
                 return;
             Sleep(2000);
         }