fix issue with peers not updated on metadata from magnet links
This commit is contained in:
parent
9a63d4696e
commit
af07ce1f25
|
@ -1,3 +1,5 @@
|
||||||
|
* fix issue with peers not updated on metadata from magnet links
|
||||||
|
|
||||||
1.1.2 release
|
1.1.2 release
|
||||||
|
|
||||||
* default TOS marking to 0x20
|
* default TOS marking to 0x20
|
||||||
|
|
|
@ -8770,6 +8770,7 @@ namespace libtorrent
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool const notify_initialized = !m_connections_initialized;
|
||||||
m_connections_initialized = true;
|
m_connections_initialized = true;
|
||||||
m_files_checked = true;
|
m_files_checked = true;
|
||||||
|
|
||||||
|
@ -8783,7 +8784,7 @@ namespace libtorrent
|
||||||
|
|
||||||
// all peer connections have to initialize themselves now that the metadata
|
// all peer connections have to initialize themselves now that the metadata
|
||||||
// is available
|
// is available
|
||||||
if (!m_connections_initialized)
|
if (notify_initialized)
|
||||||
{
|
{
|
||||||
if (pc->is_disconnecting()) continue;
|
if (pc->is_disconnecting()) continue;
|
||||||
pc->on_metadata_impl();
|
pc->on_metadata_impl();
|
||||||
|
|
Loading…
Reference in New Issue