Browse Source

Update main.go

hliang 1 year ago
parent
commit
6a09c372a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -186,7 +186,7 @@ func checkTimeout(c2 chan string) {
 	// 100ms检查一次
 	for i := 0; i < defaultTimeout*10; i++ {
 		if len(c2) > 0 {
-			break
+			return
 		}
 		time.Sleep(time.Millisecond * 100)
 	}