fix: new BehaviourContext ignored

This commit is contained in:
Alex authored and InsanusMokrassar committed 2022-05-02 12:29:21 +06:00
1 parent 33fb75a5eb
commit 619c82bb32
1 file changed
+1 -1
@@ -128,7 +128,7 @@ suspend fun <T, BC : BehaviourContext> BC.doInSubContextWithUpdatesFilter(
upstreamUpdatesFlow = updatesUpstreamFlow
).run {
withContext(coroutineContext) {
behaviourContextReceiver().also { if (stopOnCompletion) stop() }
(this@run as BC).behaviourContextReceiver().also { if (stopOnCompletion) stop() }
}
}