Skip to content

Commit

Permalink
fix: reset Reader::SeekState when poll completed (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
flisky authored Mar 15, 2023
1 parent 76a1fa4 commit a2db495
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ impl tokio::io::AsyncSeek for Reader {
}
SeekState::Start(pos) => {
let n = ready!(self.inner.poll_seek(cx, pos))?;
self.get_mut().seek_state = SeekState::Init;
Poll::Ready(Ok(n))
}
}
Expand Down

0 comments on commit a2db495

Please sign in to comment.