fix: download panic

This commit is contained in:
liwei committed 2020-03-01 23:35:51 +08:00
1 parent b0bd2a776a
commit 753830accf
9 files changed
+181 -67

No files matched your search

+5 -4
View File
@@ -1,10 +1,11 @@
package torrent
import (
"github.com/monkeyWie/gopeed/protocol/bt/peer"
"github.com/monkeyWie/gopeed/protocol/bt/tracker"
"sync"
"time"
"github.com/monkeyWie/gopeed/protocol/bt/peer"
"github.com/monkeyWie/gopeed/protocol/bt/tracker"
)
type peerPool struct {
@@ -45,8 +46,8 @@ func (pp *peerPool) fetch() {
}
}()
}
// 每5分钟检测一次
time.Sleep(time.Minute * 5)
// 每2分钟检测一次
time.Sleep(time.Minute * 2)
}
}()
}