From e2626f4163273ddc79ad9cbf2c773897126de62e Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 22 Apr 2021 17:15:25 +0600 Subject: [PATCH] update to wait for buildBehaviour completance --- src/main/kotlin/telegram_bot/App.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/kotlin/telegram_bot/App.kt b/src/main/kotlin/telegram_bot/App.kt index 8bb37ad..677d985 100644 --- a/src/main/kotlin/telegram_bot/App.kt +++ b/src/main/kotlin/telegram_bot/App.kt @@ -27,7 +27,5 @@ suspend fun main(args: Array) { // simply reply :) reply(it, "Hello, I am ${me.firstName}") } - } - - scope.coroutineContext.job.join() + }.join() }