mirror of
https://github.com/status-im/consul.git
synced 2025-02-10 04:45:05 +00:00
add missing state reset when stopping ca manager
This commit is contained in:
parent
6228c4a53c
commit
047537833d
@ -278,8 +278,11 @@ func (c *CAManager) Stop() {
|
|||||||
needsStop.Stop()
|
needsStop.Stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c.setCAProvider(nil, nil)
|
|
||||||
c.setState(caStateUninitialized, false)
|
c.setState(caStateUninitialized, false)
|
||||||
|
c.primaryRoots = structs.IndexedCARoots{}
|
||||||
|
c.actingSecondaryCA = false
|
||||||
|
c.setCAProvider(nil, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *CAManager) startPostInitializeRoutines(ctx context.Context) {
|
func (c *CAManager) startPostInitializeRoutines(ctx context.Context) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user