abortDownload

fun abortDownload(block: PieceBlock, peerId: Any? = null)

Cancel a requested block for peerId. Mirrors abort_download. Decrements the block's peer count; if other peers still have it requested the block stays requested. When it drops to zero the block returns to free, and if the whole piece becomes empty it is removed from the download list.