Merge pull request #76 from dalbodeule/develop

debug some codes...
This commit is contained in:
JinU Choi 2024-08-14 22:17:58 +09:00 committed by GitHub
commit 5fb25089d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -222,12 +222,12 @@ class UserHandler(
CoroutineScope(Dispatchers.Default).launch { CoroutineScope(Dispatchers.Default).launch {
logger.info("${user.username} is live.") logger.info("${user.username} is live.")
logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}")
listener.connectAsync().await()
streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) }
if(!_isActive) { if(!_isActive) {
logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}")
listener.connectAsync().await()
streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) }
_isActive = true _isActive = true
when(TimerConfigService.getConfig(UserService.getUser(channel.channelId)!!)?.option) { when(TimerConfigService.getConfig(UserService.getUser(channel.channelId)!!)?.option) {
TimerType.UPTIME.value -> dispatcher.post( TimerType.UPTIME.value -> dispatcher.post(