add missing state reset when stopping ca manager

pull/10445/head
Dhia Ayachi 2021-07-12 09:25:35 -04:00
parent 6228c4a53c
commit 047537833d
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) {