Skip to content

Commit

Permalink
fix: SSLHandshakeException
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Dec 12, 2021
1 parent ca00a1d commit 947f6af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/plugin/ArknightsTools.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import xyz.cssxsh.arknights.penguin.*
import java.io.*
import java.net.*
import java.time.*
import javax.net.ssl.*
import kotlin.properties.*
import kotlin.reflect.*

Expand Down Expand Up @@ -101,7 +102,7 @@ fun findContact(delegate: Long): Contact? {

internal val DownloaderIgnore: suspend (Throwable) -> Boolean = {
when (it) {
is UnknownHostException -> {
is UnknownHostException, is SSLHandshakeException -> {
false
}
is IOException,
Expand Down

0 comments on commit 947f6af

Please sign in to comment.