From 9e6d54cea7500c515651525ca976829b7d5a1312 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 29 Mar 2023 07:49:56 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A2=D1=80=D0=B5=D0=B4=20=D0=B7=D0=B0=D0=B3?= =?UTF-8?q?=D1=80=D1=83=D0=B7=D0=BA=D0=B8=20=D0=B0=D1=81=D1=81=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B4=D0=BE=D0=BB=D0=B6=D0=B5=D0=BD=20=D1=81?= =?UTF-8?q?=D1=87=D0=B8=D1=82=D0=B0=D1=82=D1=8C=D1=81=D1=8F=20=D0=B4=D0=B5?= =?UTF-8?q?=D0=BC=D0=BE=D0=BD=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt index 67660d32..f6739dbc 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt @@ -691,7 +691,10 @@ class Starbound : ISBFileLocator { } initializing = true - Thread({ doInitialize(callback) }, "Asset Loader").start() + Thread({ doInitialize(callback) }, "Asset Loader").also { + it.isDaemon = true + it.start() + } } fun onInitialize(callback: () -> Unit) {