File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/me/itzg/helpers/curseforge Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 88import static me .itzg .helpers .singles .MoreCollections .safeStreamFrom ;
99
1010import com .fasterxml .jackson .databind .JsonMappingException ;
11+ import io .netty .channel .ChannelException ;
1112import java .io .File ;
1213import java .io .IOException ;
1314import java .io .InputStream ;
6566import reactor .core .publisher .Flux ;
6667import reactor .core .publisher .Mono ;
6768import reactor .core .scheduler .Schedulers ;
68- import reactor .netty .http .client .PrematureCloseException ;
6969import reactor .util .retry .Retry ;
7070
7171@ RequiredArgsConstructor
@@ -758,7 +758,8 @@ private Mono<DownloadOrResolveResult> buildRetryableDownload(InstallContext con
758758 .filter (throwable ->
759759 throwable instanceof FileHashInvalidException ||
760760 throwable instanceof FailedRequestException ||
761- throwable instanceof PrematureCloseException
761+ throwable instanceof IOException ||
762+ throwable instanceof ChannelException
762763 )
763764 .doBeforeRetry (retrySignal ->
764765 log .warn ("Retrying to download {} @ {}:{}" ,
You can’t perform that action at this time.
0 commit comments