Skip to content

Commit 433c670

Browse files
authored
return srv when in shouldRestart case (#1448)
1 parent c5fab07 commit 433c670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ func NewServer(
726726
} else {
727727
glog.Errorf(CLog(Red, "NewServer: Forcing a rollback to the last snapshot epoch because node was not closed "+
728728
"properly last time"))
729-
return nil, errors.Wrapf(err, "NewServer: Restart required"), true
729+
return srv, errors.Wrapf(err, "NewServer: Restart required"), true
730730
}
731731
}
732732

0 commit comments

Comments
 (0)