Merge pull request #62 from dalbodeule/develop

debug some errors.
This commit is contained in:
JinU Choi 2024-08-13 20:28:57 +09:00 committed by GitHub
commit 35074d0aac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,7 +217,6 @@ class UserHandler(
internal fun isActive(value: Boolean, status: IData<IStreamInfo?>) {
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(