add missing state reset when stopping ca manager

This commit is contained in:
Dhia Ayachi 2021-07-12 09:25:35 -04:00
parent 68d5f7769a
commit a0320169fe
1 changed files with 4 additions and 1 deletions

View File

@ -278,8 +278,11 @@ func (c *CAManager) Stop() {
needsStop.Stop()
}
}
c.setCAProvider(nil, nil)
c.setState(caStateUninitialized, false)
c.primaryRoots = structs.IndexedCARoots{}
c.actingSecondaryCA = false
c.setCAProvider(nil, nil)
}
func (c *CAManager) startPostInitializeRoutines(ctx context.Context) {