revid: reverted section of code which deals with failed restart of connection

This commit is contained in:
saxon 2018-11-28 15:33:56 +10:30
parent 0afaa07c1e
commit 89b7a0acfa
1 changed files with 4 additions and 3 deletions

View File

@ -386,9 +386,10 @@ loop:
if rs, ok := dest.(restarter); ok { if rs, ok := dest.(restarter); ok {
r.config.Logger.Log(smartlogger.Debug, pkg+"restarting session", "session", rs) r.config.Logger.Log(smartlogger.Debug, pkg+"restarting session", "session", rs)
err = rs.restart() err = rs.restart()
for err != nil { if err != nil {
r.config.Logger.Log(smartlogger.Error, pkg+"failed to restart rtmp session, trying again", "error", err.Error()) r.config.Logger.Log(smartlogger.Error, pkg+"failed to restart rtmp session", "error", err.Error())
err = rs.restart() r.isRunning = false
return
} }
r.config.Logger.Log(smartlogger.Info, pkg+"restarted rtmp session") r.config.Logger.Log(smartlogger.Info, pkg+"restarted rtmp session")