Commit 44cda2b1 authored by Him188's avatar Him188

Add `this.complete()` when exception

parent 50d9b639
......@@ -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
}
}
......
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