mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 15:00:38 +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() }
|
withContext(subscriberContext) { handler.invoke(event) }.also { if (it == ListeningStatus.STOPPED) this.complete() }
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
e.logStacktrace()
|
e.logStacktrace()
|
||||||
//this.completeExceptionally(e)
|
this.complete() // do not `completeExceptionally`, otherwise parentJob will fail.
|
||||||
ListeningStatus.STOPPED
|
ListeningStatus.STOPPED
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user