close endpoint after download

This commit is contained in:
Zlatin Balevsky
2019-05-29 12:15:27 +01:00
parent 865e4ab15c
commit 91757aadfb

View File

@@ -48,6 +48,7 @@ public class Downloader {
currentSession.request() currentSession.request()
} }
currentState = DownloadState.FINISHED currentState = DownloadState.FINISHED
endpoint.close()
} }
public long donePieces() { public long donePieces() {