debug some errors.

- ChzzkHandler.runStreamInfo debugs with startThread functions.
This commit is contained in:
dalbodeule 2024-08-13 20:25:49 +09:00
parent 910886f8b5
commit b6a68fe35a
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

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(