Read piece for torrents added with skip hash only for older libtorrent

This commit is contained in:
an0n666
2020-07-29 09:06:11 +06:00
parent 3a0ec8b283
commit dc211f69ac
2 changed files with 9 additions and 1 deletions

View File

@@ -590,7 +590,9 @@ namespace BitTorrent
void handleStateUpdateAlert(const lt::state_update_alert *p);
void handleMetadataReceivedAlert(const lt::metadata_received_alert *p);
void handleFileErrorAlert(const lt::file_error_alert *p);
#if (LIBTORRENT_VERSION_NUM < 10208)
void handleReadPieceAlert(const lt::read_piece_alert *p) const;
#endif
void handleTorrentRemovedAlert(const lt::torrent_removed_alert *p);
void handleTorrentDeletedAlert(const lt::torrent_deleted_alert *p);
void handleTorrentDeleteFailedAlert(const lt::torrent_delete_failed_alert *p);