Browse Source

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

miguelfreitas
Matt Corallo 14 years ago
parent
commit
973800b52f
  1. 2
      net.cpp

2
net.cpp

@ -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);
} }

Loading…
Cancel
Save