mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
debug some errors.
- ChzzkHandler.runStreamInfo debugs with startThread functions.
This commit is contained in:
parent
b6a68fe35a
commit
b643ed83e7
@ -86,6 +86,7 @@ object ChzzkHandler {
|
||||
running = true
|
||||
|
||||
val threadRunner1 = Runnable {
|
||||
logger.info("Thread 1 started!")
|
||||
while (running) {
|
||||
handlers.forEach {
|
||||
if (!running) return@forEach
|
||||
@ -106,6 +107,8 @@ object ChzzkHandler {
|
||||
}
|
||||
|
||||
val threadRunner2 = Runnable {
|
||||
logger.info("Thread 2 started!")
|
||||
logger.info("Thread 2 started!")
|
||||
while (running) {
|
||||
handlers.forEach {
|
||||
if (!running) return@forEach
|
||||
@ -219,12 +222,12 @@ class UserHandler(
|
||||
CoroutineScope(Dispatchers.Default).launch {
|
||||
logger.info("${user.username} is live.")
|
||||
|
||||
if(!_isActive) {
|
||||
logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}")
|
||||
listener.connectAsync().await()
|
||||
|
||||
streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) }
|
||||
|
||||
if(!_isActive) {
|
||||
_isActive = true
|
||||
when(TimerConfigService.getConfig(UserService.getUser(channel.channelId)!!)?.option) {
|
||||
TimerType.UPTIME.value -> dispatcher.post(
|
||||
|
Loading…
x
Reference in New Issue
Block a user