forked from premiere/premiere-libtorrent
Avoid a possible null pointer error when logging on peer_connection::on_connection_complete.
This commit is contained in:
parent
a91e7ce25d
commit
1356332496
|
@ -6227,7 +6227,7 @@ namespace libtorrent
|
||||||
#ifndef TORRENT_DISABLE_LOGGING
|
#ifndef TORRENT_DISABLE_LOGGING
|
||||||
{
|
{
|
||||||
boost::shared_ptr<torrent> t = m_torrent.lock();
|
boost::shared_ptr<torrent> t = m_torrent.lock();
|
||||||
t->debug_log("END connect [%p]", this);
|
if (t) t->debug_log("END connect [%p]", this);
|
||||||
m_connect_time = completed;
|
m_connect_time = completed;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue