Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public void run() throws IOException, IllegalAccessException, IllegalArgumentExc

try {
final boolean isSupportSeek = CustomComponentHolder.getImpl().isSupportSeek();
if (hostRunnable != null && !isSupportSeek) {
final boolean isMultiConnection = connectionIndex >= 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it is single connection download the hostRunnable must be null

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But in fact, the hostRunnable always is not null.

if (isMultiConnection && !isSupportSeek) {
throw new IllegalAccessException(
"can't using multi-download when the output stream can't support seek");
}
Expand Down