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:
Arvid Norberg 2015-08-07 00:54:39 -04:00
commit e3c9e75452
1 changed files with 1 additions and 1 deletions

View File

@ -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