+str #18486 Make sure that Source.subscriber's Subscriber throws if subscribed more than once
This commit is contained in:
parent
5f2e50e416
commit
74dc99a656
1 changed files with 1 additions and 3 deletions
|
|
@ -379,11 +379,9 @@ private[stream] final class VirtualProcessor[T] extends Processor[T, T] {
|
|||
case Completed ⇒ tryOnComplete(s)
|
||||
case Failed(ex) ⇒ tryOnError(s, ex)
|
||||
case Allowed ⇒ // all good
|
||||
|
||||
}
|
||||
} catch {
|
||||
case ex @ canNotSubscribeTheSameSubscriberMultipleTimesException ⇒ throw ex
|
||||
case NonFatal(ex) ⇒ sub.cancel()
|
||||
case NonFatal(ex) ⇒ if (isCancelled) throw ex else sub.cancel()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue