forked from premiere/premiere-libtorrent
potential crash fix in lt_metadata extension
This commit is contained in:
parent
50d80f012b
commit
9dc873f70b
|
@ -476,6 +476,8 @@ namespace libtorrent { namespace
|
||||||
|
|
||||||
virtual void tick()
|
virtual void tick()
|
||||||
{
|
{
|
||||||
|
if (m_pc.is_disconnecting()) return;
|
||||||
|
|
||||||
// if we don't have any metadata, and this peer
|
// if we don't have any metadata, and this peer
|
||||||
// supports the request metadata extension
|
// supports the request metadata extension
|
||||||
// and we aren't currently waiting for a request
|
// and we aren't currently waiting for a request
|
||||||
|
|
Loading…
Reference in New Issue