ttorrent icon indicating copy to clipboard operation
ttorrent copied to clipboard

IllegalStateException: Trying to download a piece while previous download not completed!

Open chrisawad opened this issue 8 years ago • 10 comments

I'm getting the following all over the place when I download a torrent using the master branch right now.

Exception in thread "bt-peer(..BC5A6F)-recv" java.lang.IllegalStateException: Trying to download a piece while previous download not completed!
    at com.turn.ttorrent.client.peer.SharingPeer.downloadPiece(SharingPeer.java:357)
    at com.turn.ttorrent.client.SharedTorrent.handlePeerReady(SharedTorrent.java:700)
    at com.turn.ttorrent.client.peer.SharingPeer.firePeerReady(SharingPeer.java:654)
    at com.turn.ttorrent.client.peer.SharingPeer.handleMessage(SharingPeer.java:615)
    at com.turn.ttorrent.client.peer.PeerExchange$IncomingThread.run(PeerExchange.java:364)

IllegalStateException is a RuntimeException so it seems like it's being thrown somewhere in the program and not being handled. I can't seem to track down exactly from where & it usually starts flooding the error stream mid way though the download.

Thoughts?

chrisawad avatar Feb 16 '16 03:02 chrisawad