potential crash fix in lt_metadata extension

This commit is contained in:
Arvid Norberg 2013-01-07 04:23:13 +00:00
parent 50d80f012b
commit 9dc873f70b
1 changed files with 2 additions and 0 deletions

View File

@ -476,6 +476,8 @@ namespace libtorrent { namespace
virtual void tick()
{
if (m_pc.is_disconnecting()) return;
// if we don't have any metadata, and this peer
// supports the request metadata extension
// and we aren't currently waiting for a request