forked from premiere/premiere-libtorrent
*** empty log message ***
This commit is contained in:
parent
de63a70323
commit
cf8d7beb23
|
@ -2020,6 +2020,7 @@ namespace libtorrent
|
||||||
std::copy(m_recv_buffer.begin()+8, m_recv_buffer.begin() + 28, (char*)info_hash.begin());
|
std::copy(m_recv_buffer.begin()+8, m_recv_buffer.begin() + 28, (char*)info_hash.begin());
|
||||||
|
|
||||||
m_torrent = m_ses.find_torrent(info_hash);
|
m_torrent = m_ses.find_torrent(info_hash);
|
||||||
|
if (m_torrent && m_torrent->is_aborted()) m_torrent = 0;
|
||||||
if (m_torrent == 0)
|
if (m_torrent == 0)
|
||||||
{
|
{
|
||||||
// we couldn't find the torrent!
|
// we couldn't find the torrent!
|
||||||
|
|
|
@ -792,9 +792,7 @@ namespace libtorrent { namespace detail
|
||||||
= m_torrents.find(info_hash);
|
= m_torrents.find(info_hash);
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
for (std::map<sha1_hash, boost::shared_ptr<torrent> >::iterator j
|
for (std::map<sha1_hash, boost::shared_ptr<torrent> >::iterator j
|
||||||
= m_torrents.begin();
|
= m_torrents.begin(); j != m_torrents.end(); ++j)
|
||||||
j != m_torrents.end();
|
|
||||||
++j)
|
|
||||||
{
|
{
|
||||||
torrent* p = boost::get_pointer(j->second);
|
torrent* p = boost::get_pointer(j->second);
|
||||||
assert(p);
|
assert(p);
|
||||||
|
@ -818,8 +816,7 @@ namespace libtorrent { namespace detail
|
||||||
assert(place);
|
assert(place);
|
||||||
|
|
||||||
for (connection_map::iterator i = m_connections.begin();
|
for (connection_map::iterator i = m_connections.begin();
|
||||||
i != m_connections.end();
|
i != m_connections.end(); ++i)
|
||||||
++i)
|
|
||||||
{
|
{
|
||||||
if (i->second->can_write() != m_selector.is_writability_monitored(i->first)
|
if (i->second->can_write() != m_selector.is_writability_monitored(i->first)
|
||||||
|| i->second->can_read() != m_selector.is_readability_monitored(i->first))
|
|| i->second->can_read() != m_selector.is_readability_monitored(i->first))
|
||||||
|
|
Loading…
Reference in New Issue