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