| 1068 | } |
| 1069 | |
| 1070 | func (c *baseClient) disableMaintNotificationsUpgrades() error { |
| 1071 | c.maintNotificationsManagerLock.Lock() |
| 1072 | defer c.maintNotificationsManagerLock.Unlock() |
| 1073 | |
| 1074 | // Close the maintnotifications manager |
| 1075 | if c.maintNotificationsManager != nil { |
| 1076 | // Closing the manager will also shutdown the pool hook |
| 1077 | // and remove it from the pool |
| 1078 | if err := c.maintNotificationsManager.Close(); err != nil { |
| 1079 | return err |
| 1080 | } |
| 1081 | c.maintNotificationsManager = nil |
| 1082 | } |
| 1083 | return nil |
| 1084 | } |
| 1085 | |
| 1086 | // Close closes the client, releasing any open resources. |
| 1087 | // |