Skip to content

Commit

Permalink
Merge 16d9e98 into b473e5e
Browse files Browse the repository at this point in the history
  • Loading branch information
rleungx committed Dec 26, 2018
2 parents b473e5e + 16d9e98 commit 6afccaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ func (s *Server) campaignLeader() error {
return nil
}
case <-ctx.Done():
return errors.New("server closed")
// Server is closed and it should return nil.
log.Info("server is closed")
return nil
}
}
}
Expand Down

0 comments on commit 6afccaa

Please sign in to comment.