mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-03-11 21:11:17 +00:00
Exit when no UPnP router found and fUseUPnP gets set to 0.
This commit is contained in:
parent
b37f09aa2e
commit
973800b52f
2
net.cpp
2
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user