fixed UPnP crash caused by UPnP was giving up while there were still outstanding http requests pending

This commit is contained in:
Arvid Norberg 2009-03-01 02:25:46 +00:00
parent b809028bda
commit 614dec05aa
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,7 @@ release 0.14.3
* fixed filename bug when using wide characters
* fixed rare crash in peer banning code
* fixed potential HTTP compatibility issue
* fixed UPnP crash
release 0.14.2

View File

@ -938,7 +938,10 @@ void upnp::disable(char const* msg)
m_callback(i - m_mappings.begin(), 0, msg);
}
m_devices.clear();
// we cannot clear the devices since there
// might be outstanding requests relying on
// the device entry being present when they
// complete
error_code ec;
m_broadcast_timer.cancel(ec);
m_refresh_timer.cancel(ec);