mirror of https://bitbucket.org/ausocean/av.git
Declare error.
This commit is contained in:
parent
c15c57f15f
commit
32280cb9d6
|
@ -308,6 +308,7 @@ func (s *rtmpSender) release() {
|
||||||
|
|
||||||
func (s *rtmpSender) restart() error {
|
func (s *rtmpSender) restart() error {
|
||||||
s.conn.Close()
|
s.conn.Close()
|
||||||
|
var err error
|
||||||
for n := 0; n < s.retries; n++ {
|
for n := 0; n < s.retries; n++ {
|
||||||
s.conn, err = rtmp.Dial(s.url, s.timeout, s.log)
|
s.conn, err = rtmp.Dial(s.url, s.timeout, s.log)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|
Loading…
Reference in New Issue