fixed bug in extension loop
This commit is contained in:
parent
af0ebb519c
commit
b354e7e0d9
|
@ -1261,8 +1261,8 @@ namespace libtorrent
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_EXTENSIONS
|
#ifndef TORRENT_DISABLE_EXTENSIONS
|
||||||
for (extension_list_t::iterator i = m_extensions.begin()
|
for (extension_list_t::iterator i = m_extensions.begin();
|
||||||
, end(m_extensions.end()); i != end;)
|
!m_extensions.empty() && i != m_extensions.end();)
|
||||||
{
|
{
|
||||||
// a false return value means that the extension
|
// a false return value means that the extension
|
||||||
// isn't supported by the other end. So, it is removed.
|
// isn't supported by the other end. So, it is removed.
|
||||||
|
|
Loading…
Reference in New Issue