Commit 1f97454b authored by Him188's avatar Him188

Fix unhandled `BotOfflineEvent.Force`

parent 437f9db5
......@@ -93,7 +93,7 @@ abstract class BotImpl<N : BotNetworkHandler> constructor(
@Suppress("unused")
private val offlineListener: Listener<BotOfflineEvent> =
this@BotImpl.subscribeAlways(concurrency = Listener.ConcurrencyKind.LOCKED) { event ->
if (network.areYouOk()) {
if (network.areYouOk() && event !is BotOfflineEvent.Force) {
// avoid concurrent re-login tasks
return@subscribeAlways
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment