mirror of https://bitbucket.org/ausocean/av.git
gofmt
This commit is contained in:
parent
32280cb9d6
commit
b1dcb9d6a7
|
@ -308,8 +308,8 @@ func (s *rtmpSender) release() {
|
||||||
|
|
||||||
func (s *rtmpSender) restart() error {
|
func (s *rtmpSender) restart() error {
|
||||||
s.conn.Close()
|
s.conn.Close()
|
||||||
var err error
|
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 {
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue