mirror of https://bitbucket.org/ausocean/av.git
revid: reverted section of code which deals with failed restart of connection
This commit is contained in:
parent
0afaa07c1e
commit
89b7a0acfa
|
@ -386,9 +386,10 @@ loop:
|
|||
if rs, ok := dest.(restarter); ok {
|
||||
r.config.Logger.Log(smartlogger.Debug, pkg+"restarting session", "session", rs)
|
||||
err = rs.restart()
|
||||
for err != nil {
|
||||
r.config.Logger.Log(smartlogger.Error, pkg+"failed to restart rtmp session, trying again", "error", err.Error())
|
||||
err = rs.restart()
|
||||
if err != nil {
|
||||
r.config.Logger.Log(smartlogger.Error, pkg+"failed to restart rtmp session", "error", err.Error())
|
||||
r.isRunning = false
|
||||
return
|
||||
}
|
||||
|
||||
r.config.Logger.Log(smartlogger.Info, pkg+"restarted rtmp session")
|
||||
|
|
Loading…
Reference in New Issue