diff --git a/server.go b/server.go index 8a9d05c..f19dd06 100644 --- a/server.go +++ b/server.go @@ -1237,6 +1237,7 @@ func (s *server) saveSnapshot() error { // Write snapshot to disk. if err := s.pendingSnapshot.save(); err != nil { + s.pendingSnapshot = nil return err }