From 952554dbb4b0a5a2d5ac99c04d66787e12a3f5b4 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 23 Jan 2018 15:42:23 +1030 Subject: [PATCH] Added check to see if revid already running --- revid/RevidInstance.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/revid/RevidInstance.go b/revid/RevidInstance.go index 17a55c89..b25cded8 100644 --- a/revid/RevidInstance.go +++ b/revid/RevidInstance.go @@ -172,6 +172,10 @@ func (r *revidInst) ErrOut(m string){ } func (r *revidInst) Start() { + if r.isRunning { + r.ErrOut("Start() has been called but revid already running!") + return + } r.ErrOut("Starting Revid!") switch r.config.Input { case Raspivid: