serialization: check stream good flag at the end

just in case
This commit is contained in:
moneromooo-monero
2019-04-16 18:48:40 +00:00
parent a00cabd4f3
commit 1387549e90
3 changed files with 6 additions and 6 deletions

View File

@@ -320,7 +320,7 @@ namespace cryptonote
}
if (!typename Archive<W>::is_saving())
pruned = true;
return true;
return ar.stream().good();
}
private: