mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Add this.complete()
when exception
This commit is contained in:
parent
50d9b6399e
commit
44cda2b196
@ -47,7 +47,7 @@ internal class Handler<in E : Subscribable>
|
||||
withContext(subscriberContext) { handler.invoke(event) }.also { if (it == ListeningStatus.STOPPED) this.complete() }
|
||||
} catch (e: Throwable) {
|
||||
e.logStacktrace()
|
||||
//this.completeExceptionally(e)
|
||||
this.complete() // do not `completeExceptionally`, otherwise parentJob will fail.
|
||||
ListeningStatus.STOPPED
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user