Merge pull request #72 from aldenml/peer-connection-null-error
Avoid a possible null pointer error when logging in on_connection_complete
This commit is contained in:
commit
e3c9e75452
|
@ -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