Fix small bug in StreamBuffer

This commit is contained in:
2021-03-05 14:33:01 -05:00
parent c742bc5645
commit d29e471f1d
3 changed files with 7 additions and 6 deletions

View File

@@ -134,6 +134,7 @@ void LuaSnap::snapshot() {
void LuaSnap::rollback() {
assert(snapshot_.write_count() != 0);
deserialize(&snapshot_);
assert(snapshot_.at_eof());
snapshot_.clear();
}