peer disconnect fix

This commit is contained in:
Arvid Norberg 2012-07-04 16:13:20 +00:00
parent 796b1b98c3
commit bdada3766a
1 changed files with 2 additions and 0 deletions

View File

@ -2416,6 +2416,8 @@ namespace libtorrent
, p.piece, _1));
}
if (is_disconnecting()) return;
#ifdef TORRENT_STATS
++m_ses.m_incoming_piece_picks;
#endif