File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
stream/src/main/scala/org/apache/pekko/stream/scaladsl Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1327,7 +1327,7 @@ object Concat {
13271327 */
13281328final class Concat [T ](val inputPorts : Int ) extends GraphStage [UniformFanInShape [T , T ]] {
13291329 require(inputPorts > 1 , " A Concat must have more than 1 input ports" )
1330- val in : immutable.IndexedSeq [Inlet [T ]] = Vector .tabulate(inputPorts)(i => Inlet [T ](" Concat.in" + i))
1330+ val in : immutable.IndexedSeq [Inlet [T ]] = Array .tabulate(inputPorts)(i => Inlet [T ](" Concat.in" + i))
13311331 val out : Outlet [T ] = Outlet [T ](" Concat.out" )
13321332 override def initialAttributes = DefaultAttributes .concat
13331333 override val shape : UniformFanInShape [T , T ] = UniformFanInShape (out, in : _* )
@@ -1350,6 +1350,7 @@ final class Concat[T](val inputPorts: Int) extends GraphStage[UniformFanInShape[
13501350
13511351 override def onUpstreamFinish () = {
13521352 if (idx == activeStream) {
1353+ in(activeStream) = null
13531354 activeStream += 1
13541355 // Skip closed inputs
13551356 while (activeStream < inputPorts && isClosed(in(activeStream))) activeStream += 1
You can’t perform that action at this time.
0 commit comments