[ Cmii ] [ Octopus ] - hot fix manual shut down init queue - 2

This commit is contained in:
zeaslity
2024-04-10 10:47:32 +08:00
parent 83a676e321
commit a9a9ab859e
6 changed files with 191 additions and 10 deletions

View File

@@ -294,8 +294,8 @@ func handleInitMsgFromServer(initFromServerMsg *rabbitmq.OctopusMessage, initToS
// shutdownRegisterQueueConnection 关闭初始化连接的两个队列
func shutdownRegisterQueueConnection(initFromServerQueue *rabbitmq.RabbitQueue, initToServerQueue *rabbitmq.RabbitQueue) {
initFromServerQueue.ConsumeOK = false
initToServerQueue.ConsumeOK = false
initFromServerQueue.ConsumeOK.Store(false)
initToServerQueue.ConsumeOK.Store(false)
log.InfoF("Octopus Agent Init Queue has disconnected!")
}