From: qydysky Date: Thu, 14 Nov 2024 14:59:55 +0000 (+0800) Subject: 1 X-Git-Tag: v0.28.20241116095044~1 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=d72db04acb5e91136246adf1b778db1ca099973c;p=part%2F.git 1 --- diff --git a/file/FileWR.go b/file/FileWR.go index d0d54ea..76ab6af 100644 --- a/file/FileWR.go +++ b/file/FileWR.go @@ -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")