fix install progress jump

This commit is contained in:
Aiden McClelland
2021-10-07 14:34:32 -06:00
committed by Aiden McClelland
parent 317e8a4c8f
commit 309b446a5c

View File

@@ -67,6 +67,7 @@ impl<R: AsyncRead + AsyncSeek + Unpin> S9pkReader<InstallProgressTracker<R>> {
}
impl<R: AsyncRead + AsyncSeek + Unpin> S9pkReader<R> {
pub async fn validate(&mut self) -> Result<(), Error> {
self.rdr.seek(SeekFrom::Start(0)).await?;
Ok(())
}
pub async fn from_reader(mut rdr: R) -> Result<Self, Error> {