修改包引入路径

This commit is contained in:
dexter
2022-02-27 18:39:54 +08:00
parent 2c03cc7263
commit 16575235a1
3 changed files with 28 additions and 28 deletions

12
pull.go
View File

@@ -7,11 +7,11 @@ import (
"os"
"strings"
. "github.com/Monibuca/engine/v4"
"github.com/Monibuca/engine/v4/codec"
"github.com/Monibuca/engine/v4/log"
"github.com/Monibuca/engine/v4/util"
"go.uber.org/zap"
. "m7s.live/engine/v4"
"m7s.live/engine/v4/codec"
"m7s.live/engine/v4/log"
"m7s.live/engine/v4/util"
)
func (puller *HDLPuller) connect() (err error) {
@@ -36,7 +36,9 @@ func (puller *HDLPuller) connect() (err error) {
func (puller *HDLPuller) pull() {
var err error
defer func() {
puller.Closer.Close()
if puller.Closer != nil {
puller.Closer.Close()
}
if !puller.Stream.IsClosed() {
if err = puller.connect(); err == nil {
go puller.pull()