]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
下载最后片段不提示EOF
authorqydysky <qydysky@foxmail.com>
Tue, 8 Jun 2021 16:32:22 +0000 (00:32 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 8 Jun 2021 16:32:22 +0000 (00:32 +0800)
Reply/F.go

index 249017c42be86108717d457eb6dbcfa9fae89aef..3b4ae4e7d1cdf0e8ac4c3f441a48b4586e9bc8f5 100644 (file)
@@ -3,6 +3,7 @@ package reply
 import (
        "fmt"
        "os"
+       "io"
        "strconv"
        "strings"
        "sync"
@@ -1096,11 +1097,9 @@ func Savestreamf(){
                                                        ConnectTimeout:5000,
                                                        ReadTimeout:1000,
                                                        Proxy:c.Proxy,
-                                               }); e != nil{
+                                               }); e != nil && !errors.Is(e, io.EOF) {
                                                        l.L(`I: `,e)
-                                                       if !reqf.IsTimeout(e) {
-                                                               v.status = s_fail
-                                                       }
+                                                       v.status = s_fail
                                                } else {
                                                        if usedt := r.UsedTime.Seconds();usedt > 700 {
                                                                l.L(`I: `, `hls切片下载慢`, usedt, `ms`)