mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 04:41:13 +00:00
[hotfix] ensure listener unsubscribes on user offline.
This commit is contained in:
@@ -322,6 +322,7 @@ class UserHandler(
|
||||
} else {
|
||||
logger.info("${user.username} is offline.")
|
||||
streamStartTime = null
|
||||
listener.unsubscribeAsync(ChzzkSessionSubscriptionType.CHAT)?.join()
|
||||
listener.disconnectAsync()?.join()
|
||||
_isActive = false
|
||||
|
||||
|
Reference in New Issue
Block a user