Merge pull request #2522 from roeierez/cleanup_server_error

Cleanup in case of server failed to start
This commit is contained in:
Olaoluwa Osuntokun
2021-04-22 13:00:22 -07:00
committed by GitHub
13 changed files with 223 additions and 69 deletions

View File

@@ -465,8 +465,9 @@ func (d *AuthenticatedGossiper) start() error {
}
// Stop signals any active goroutines for a graceful closure.
func (d *AuthenticatedGossiper) Stop() {
func (d *AuthenticatedGossiper) Stop() error {
d.stopped.Do(d.stop)
return nil
}
func (d *AuthenticatedGossiper) stop() {