diff --git a/client.go b/client.go index 03996d5..7885ac9 100644 --- a/client.go +++ b/client.go @@ -91,7 +91,8 @@ func (p *RTSPPuller) Pull() (err error) { p.Error("Play", zap.Error(err)) return err } - return p.Wait() + <-p.Done() + return p.Err() } type RTSPPusher struct {