mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-04 17:14:14 +00:00
fixed infinite loop bug
This commit is contained in:
parent
93b8bd7f02
commit
12b9b49902
3
UPnP.cpp
3
UPnP.cpp
@ -66,10 +66,13 @@ namespace transport
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_Service.run ();
|
m_Service.run ();
|
||||||
|
// Discover failed
|
||||||
|
break; // terminate the thread
|
||||||
}
|
}
|
||||||
catch (std::exception& ex)
|
catch (std::exception& ex)
|
||||||
{
|
{
|
||||||
LogPrint (eLogError, "UPnP: runtime exception: ", ex.what ());
|
LogPrint (eLogError, "UPnP: runtime exception: ", ex.what ());
|
||||||
|
PortMapping ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user