Subscription timeouts should not hit after stream ref subscribe #24626

This commit is contained in:
Johan Andrén 2018-03-12 14:19:55 +01:00 committed by Konrad `ktoso` Malawski
parent d3055a7f7f
commit d03d8fdd7e
3 changed files with 31 additions and 4 deletions

View file

@ -175,6 +175,7 @@ private[stream] final class SinkRefStageImpl[In] private[akka] (
def observeAndValidateSender(partner: ActorRef, failureMsg: String): Unit = {
if (partnerRef.isEmpty) {
partnerRef = OptionVal(partner)
cancelTimer(SubscriptionTimeoutTimerKey)
self.watch(partner)
completedBeforeRemoteConnected match {