]> 127.0.0.1 Git - part/.git/commitdiff
1
authorqydysky <qydysky@foxmail.com>
Thu, 14 Nov 2024 14:59:55 +0000 (22:59 +0800)
committerqydysky <qydysky@foxmail.com>
Thu, 14 Nov 2024 14:59:55 +0000 (22:59 +0800)
file/FileWR.go

index d0d54eaaae455f0817f1aedf4eac165faa77f7ce..76ab6afe49893ef245b122a842bc895a1d3b977e 100644 (file)
@@ -722,7 +722,7 @@ func (t *File) read() io.Reader {
 }
 
 func (t *File) seek() io.Seeker {
-       if t.Config.AutoClose || t.rr == nil {
+       if t.Config.AutoClose || t.sr == nil {
                t.sr = io.Seeker(t.file)
                if t.Config.Coder != nil {
                        panic("no support")