mirror of
https://github.com/Monibuca/engine.git
synced 2026-04-23 00:07:06 +08:00
fix: pull will sleep at frist
This commit is contained in:
@@ -55,7 +55,7 @@ func (pub *Puller) startPull(puller IPuller) {
|
||||
}
|
||||
}()
|
||||
puber := puller.GetPublisher()
|
||||
startTime := time.Now()
|
||||
var startTime time.Time
|
||||
for puller.Info("start pull"); puller.Reconnect(); puller.Warn("restart pull") {
|
||||
if time.Since(startTime) < 5*time.Second {
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
Reference in New Issue
Block a user