aboutsummaryrefslogtreecommitdiff
path: root/net.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}