akka_30782__fmp_postSop_nvm: flatMapPrefix: postStop: check promise completion before instantiating the abrupt termination exception (#30798)
This commit is contained in:
parent
9f88a1b596
commit
0bc96eaa93
1 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ import akka.util.OptionVal
|
||||||
|
|
||||||
override def postStop(): Unit = {
|
override def postStop(): Unit = {
|
||||||
//this covers the case when the nested flow was never materialized
|
//this covers the case when the nested flow was never materialized
|
||||||
matPromise.tryFailure(new AbruptStageTerminationException(this))
|
if (!matPromise.isCompleted) {
|
||||||
|
matPromise.failure(new AbruptStageTerminationException(this))
|
||||||
|
}
|
||||||
super.postStop()
|
super.postStop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue