From 31198dae48b44a11fd4c7951a2de5bde0104d934 Mon Sep 17 00:00:00 2001 From: Gureumi Date: Wed, 31 Jan 2024 09:34:56 +0900 Subject: [PATCH] Fix crash if host DNS not available --- src/main/kotlin/essentials/Trigger.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/essentials/Trigger.kt b/src/main/kotlin/essentials/Trigger.kt index 5e52abc7..662bd12f 100644 --- a/src/main/kotlin/essentials/Trigger.kt +++ b/src/main/kotlin/essentials/Trigger.kt @@ -462,7 +462,7 @@ object Trigger { host.port = port listener.accept(host) } - } catch (e : SocketTimeoutException) { + } catch (e : Exception) { listener.accept(Host(0, null, null, null, 0, 0, 0, null, null, 0, null, null)) } }