Merged in revid/nilcheck (pull request #33)

revid: fix nil dereference on RTMP reconnect
This commit is contained in:
kortschak 2018-06-16 04:10:17 +00:00
commit 4c0d219fbf
1 changed files with 3 additions and 1 deletions

View File

@ -403,9 +403,11 @@ func (r *Revid) outputClips() {
r.Log(Debug, "Trying to send again with new connection...") r.Log(Debug, "Trying to send again with new connection...")
err = r.destination.send() err = r.destination.send()
if err != nil {
r.Log(Error, err.Error()) r.Log(Error, err.Error())
} }
} }
}
r.destination.release() r.destination.release()