Skip to content

Commit

Permalink
Fix raftState close panic
Browse files Browse the repository at this point in the history
  • Loading branch information
oiooj committed Dec 8, 2015
1 parent f144820 commit 134546e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meta/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ func (r *localRaft) logLeaderChanges() {
}

func (r *localRaft) close() error {
close(r.closing)
if r.closing != nil {
close(r.closing)
}
r.wg.Wait()

if r.transport != nil {
Expand Down

0 comments on commit 134546e

Please sign in to comment.