Exit when no UPnP router found and fUseUPnP gets set to 0.

This commit is contained in:
Matt Corallo 2011-04-15 00:37:50 +02:00
parent b37f09aa2e
commit 973800b52f

View File

@ -939,7 +939,7 @@ void ThreadMapPort2(void* parg)
freeUPNPDevlist(devlist); devlist = 0; freeUPNPDevlist(devlist); devlist = 0;
FreeUPNPUrls(&urls); FreeUPNPUrls(&urls);
loop { loop {
if (fShutdown) if (fShutdown || !fUseUPnP)
return; return;
Sleep(2000); Sleep(2000);
} }