]> 127.0.0.1 Git - part/.git/commitdiff
81
authorqydysky <qydysky@foxmail.com>
Tue, 22 Sep 2020 14:18:21 +0000 (22:18 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 22 Sep 2020 14:18:21 +0000 (22:18 +0800)
Reqf.go

diff --git a/Reqf.go b/Reqf.go
index 1ce827befb767c42d52e2d600f9f334ee57ae260..30382b10af4ccd3ca1ec4186343639565e4e5270 100644 (file)
--- a/Reqf.go
+++ b/Reqf.go
@@ -69,9 +69,9 @@ func (this *req) Reqf(val Rval) (error) {
         returnErr=this.Reqf_1(_val)
         select {
         case <- this.cancel://cancel
-            break
+            return returnErr
         default:
-            if returnErr==nil {break}
+            if returnErr==nil {return nil}
         }
         time.Sleep(time.Duration(_val.SleepTime)*time.Millisecond)
     }