mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-157250 IdeProxySelector: rethrow CancellationException
GitOrigin-RevId: 83d4daad1a71f1d8834aeaa71245e6435ec3e803
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4c8fee0c2f
commit
3806438d8a
@@ -13,6 +13,7 @@ import java.net.SocketAddress
|
||||
import java.net.URI
|
||||
import java.net.URL
|
||||
import java.util.Collections
|
||||
import java.util.concurrent.CancellationException
|
||||
import java.util.concurrent.atomic.AtomicReference
|
||||
import java.util.function.Predicate
|
||||
|
||||
@@ -82,7 +83,10 @@ class IdeProxySelector(
|
||||
return NO_PROXY_LIST
|
||||
}
|
||||
}
|
||||
catch (e: Throwable) {
|
||||
catch (e: CancellationException) {
|
||||
throw e
|
||||
}
|
||||
catch (e: Exception) {
|
||||
logger.error("$uri: no proxy, failed to select using PAC/autodetect", e)
|
||||
return NO_PROXY_LIST
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user