se-bastiaan / TorrentStream-Android

A torrent streamer library for Android based on libtorrent4j
Other
343 stars 108 forks source link

Fix classcastexception #2

Closed sv244 closed 9 years ago

sv244 commented 9 years ago
java.lang.ClassCastException: libcore.net.url.FileURLConnection cannot be cast to java.net.HttpURLConnection
       at com.github.sv244.torrentstream.TorrentStream.getTorrentInfo(TorrentStream.java:179)
       at com.github.sv244.torrentstream.TorrentStream.access$900(TorrentStream.java:50)
       at com.github.sv244.torrentstream.TorrentStream$5.run(TorrentStream.java:259)
       at android.os.Handler.handleCallback(Handler.java:815)
       at android.os.Handler.dispatchMessage(Handler.java:104)
       at android.os.Looper.loop(Looper.java:194)
       at android.os.HandlerThread.run(HandlerThread.java:61)