fixed disk stats assert
This commit is contained in:
parent
c2e39ec907
commit
2c5ef0debf
|
@ -3574,7 +3574,7 @@ namespace libtorrent
|
||||||
|
|
||||||
disk_buffer_holder buffer(m_ses, j.buffer);
|
disk_buffer_holder buffer(m_ses, j.buffer);
|
||||||
#if TORRENT_DISK_STATS
|
#if TORRENT_DISK_STATS
|
||||||
m_ses.m_disk_thread.rename_buffer(j.buffer, "received send buffer");
|
if (j.buffer) m_ses.m_disk_thread.rename_buffer(j.buffer, "received send buffer");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
boost::shared_ptr<torrent> t = m_torrent.lock();
|
boost::shared_ptr<torrent> t = m_torrent.lock();
|
||||||
|
@ -3612,7 +3612,7 @@ namespace libtorrent
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TORRENT_DISK_STATS
|
#if TORRENT_DISK_STATS
|
||||||
m_ses.m_disk_thread.rename_buffer(j.buffer, "dispatched send buffer");
|
if (j.buffer) m_ses.m_disk_thread.rename_buffer(j.buffer, "dispatched send buffer");
|
||||||
#endif
|
#endif
|
||||||
write_piece(r, buffer);
|
write_piece(r, buffer);
|
||||||
setup_send();
|
setup_send();
|
||||||
|
|
Loading…
Reference in New Issue