mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
disconnect mq conn after updating admin password
This commit is contained in:
parent
1b4128bf69
commit
bcaf009cd7
1 changed files with 1 additions and 0 deletions
1
mq/mq.go
1
mq/mq.go
|
@ -68,6 +68,7 @@ func Configure() {
|
|||
if token := mqclient.Publish(DynamicSecPubTopic, 0, true, d); token.Error() != nil {
|
||||
logger.FatalLog("failed to modify admin password: ", token.Error().Error())
|
||||
}
|
||||
mqclient.Disconnect(2)
|
||||
adminPassword = newAdminPassword
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue