From a995a36ad77c38a3167cf8e8703dc1c5b7164b82 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Thu, 14 Jun 2018 22:54:44 +0930 Subject: [PATCH] revid: fix nil dereference on RTMP reconnect --- revid/revid.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/revid/revid.go b/revid/revid.go index df4e4916..ad16e7f2 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -404,7 +404,9 @@ func (r *Revid) outputClips() { r.Log(Debug, "Trying to send again with new connection...") err = r.destination.send() - r.Log(Error, err.Error()) + if err != nil { + r.Log(Error, err.Error()) + } } }