=str #16924: Fix FanoutProcessor to not overwrite last termination cause

Also fix FlowSpec to expect onError instead of onComplete for late subscribers
This commit is contained in:
Endre Sándor Varga 2015-03-27 13:13:44 +01:00
parent 7081b6b9d4
commit 5559c34ca9
7 changed files with 15 additions and 14 deletions

View file

@ -277,7 +277,7 @@ private[akka] abstract class TwoStreamInputProcessor(_settings: ActorFlowMateria
case OtherStreamOnError(e) TwoStreamInputProcessor.this.onError(e)
}
override protected def completed: Actor.Receive = {
case OtherStreamOnSubscribe(_) throw new IllegalStateException("Cannot subscribe shutdown subscriber")
case OtherStreamOnSubscribe(_) throw ActorPublisher.NormalShutdownReason
}
}