From b6a68fe35a5d0c03e4b24db109d1430c077ef5b6 Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Tue, 13 Aug 2024 20:25:49 +0900 Subject: [PATCH] debug some errors. - ChzzkHandler.runStreamInfo debugs with startThread functions. --- .../kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt b/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt index c1432ec..dd95a81 100644 --- a/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt +++ b/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt @@ -217,7 +217,6 @@ class UserHandler( internal fun isActive(value: Boolean, status: IData) { if(value) { CoroutineScope(Dispatchers.Default).launch { - if(!_isActive) { logger.info("${user.username} is live.") logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}") @@ -225,6 +224,7 @@ class UserHandler( streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) } + if(!_isActive) { _isActive = true when(TimerConfigService.getConfig(UserService.getUser(channel.channelId)!!)?.option) { TimerType.UPTIME.value -> dispatcher.post(