Merge pull request #2522 from roeierez/cleanup_server_error

Cleanup in case of server failed to start
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2021-04-22 13:00:22 -07:00
commit 5d1574f566
13 files changed
+223 -69

No files matched your search

+2 -1
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() {