forked from premiere/premiere-libtorrent
fixed UPnP crash caused by UPnP was giving up while there were still outstanding http requests pending
This commit is contained in:
parent
b809028bda
commit
614dec05aa
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue