Fix loading old hashes
This commit is contained in:
parent
5a93dacdad
commit
f52219cb31
@ -630,7 +630,7 @@ func (s *Server) DecodeHashes(format Format, hashes []byte) error {
|
||||
}
|
||||
loadedHashes := ch.SavedHashes{}
|
||||
err := decoder(hashes, &loadedHashes)
|
||||
if err != nil {
|
||||
if err != nil || len(loadedHashes.Hashes[0]) == 0 {
|
||||
fmt.Println("Failed to load hashes, checking if they are old hashes", format, ":", err)
|
||||
oldHashes := make(ch.OldSavedHashes)
|
||||
if err = decoder(hashes, &oldHashes); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user