Browse Source

fixed infinite loop bug

pull/718/head
orignal 8 years ago
parent
commit
12b9b49902
  1. 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…
Cancel
Save