From 973800b52f13e993110e351ec414eed54147118d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 15 Apr 2011 00:37:50 +0200 Subject: Exit when no UPnP router found and fUseUPnP gets set to 0. --- net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.cpp b/net.cpp index 833aafc0a1..f3857baf61 100644 --- a/net.cpp +++ b/net.cpp @@ -939,7 +939,7 @@ void ThreadMapPort2(void* parg) freeUPNPDevlist(devlist); devlist = 0; FreeUPNPUrls(&urls); loop { - if (fShutdown) + if (fShutdown || !fUseUPnP) return; Sleep(2000); } -- cgit v1.2.3