mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-10 10:23:47 +00:00
fix: new BehaviourContext ignored
This commit is contained in:
parent
a52f31f4c9
commit
db14eee3b6
@ -128,7 +128,7 @@ suspend fun <T, BC : BehaviourContext> BC.doInSubContextWithUpdatesFilter(
|
|||||||
upstreamUpdatesFlow = updatesUpstreamFlow
|
upstreamUpdatesFlow = updatesUpstreamFlow
|
||||||
).run {
|
).run {
|
||||||
withContext(coroutineContext) {
|
withContext(coroutineContext) {
|
||||||
behaviourContextReceiver().also { if (stopOnCompletion) stop() }
|
(this@run as BC).behaviourContextReceiver().also { if (stopOnCompletion) stop() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user