File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/me/itzg/helpers/curseforge Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 6565import reactor .core .publisher .Flux ;
6666import reactor .core .publisher .Mono ;
6767import reactor .core .scheduler .Schedulers ;
68+ import reactor .netty .http .client .PrematureCloseException ;
6869import reactor .util .retry .Retry ;
6970
7071@ RequiredArgsConstructor
@@ -756,7 +757,8 @@ private Mono<DownloadOrResolveResult> buildRetryableDownload(InstallContext con
756757 Retry .fixedDelay (BAD_FILE_ATTEMPTS , BAD_FILE_DELAY )
757758 .filter (throwable ->
758759 throwable instanceof FileHashInvalidException ||
759- throwable instanceof FailedRequestException
760+ throwable instanceof FailedRequestException ||
761+ throwable instanceof PrematureCloseException
760762 )
761763 .doBeforeRetry (retrySignal ->
762764 log .warn ("Retrying to download {} @ {}:{}" ,
You can’t perform that action at this time.
0 commit comments