Skip to content

Commit 3377043

Browse files
Xiang Licjinaws
authored andcommitted
Take out the logic to close readyMessageChan to ensure retry control channel is successful.
cr: https://code.amazon.com/reviews/CR-97897220
1 parent 3742ab6 commit 3377043

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

agent/session/controlchannel/controlchannel.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ func controlChannelIncomingMessageHandler(context context.T,
269269
select {
270270
case readyMessageChan <- true:
271271
log.Tracef("Send true to readyMessageChan")
272-
close(readyMessageChan)
273272
case <-time.After(mgsConfig.ControlChannelReadyTimeout):
274273
log.Warnf("The control_channel_ready message is not processed before the timeout. Break from select statement.")
275274
}

0 commit comments

Comments
 (0)