From a5d0e0d3694d7c5652b2877fa3e3a7c9e209c6c5 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Thu, 13 Jul 2023 10:32:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Hold=20tr=C3=A5den=20i=20gang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Markus A. R. Johansen Co-authored-by: Amalie Erdal Mansåker Co-authored-by: Helene Arnesen Co-authored-by: Øydis Kind Refsum Co-authored-by: Christian Bülow Skovborg --- backend/src/main/kotlin/no/nav/helse/sprik/Application.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/kotlin/no/nav/helse/sprik/Application.kt b/backend/src/main/kotlin/no/nav/helse/sprik/Application.kt index c6f1928..2ff3f15 100644 --- a/backend/src/main/kotlin/no/nav/helse/sprik/Application.kt +++ b/backend/src/main/kotlin/no/nav/helse/sprik/Application.kt @@ -13,9 +13,8 @@ fun main() { class Application(private val db: Database) { fun startBlocking() { - runBlocking { - configureRouting().start(wait = false) + configureRouting().start(wait = true) Runtime.getRuntime().addShutdownHook( Thread { db.dataSource.close()