Added check to see if revid already running

This commit is contained in:
Unknown 2018-01-23 15:42:23 +10:30
parent 3d46b750e7
commit 952554dbb4
1 changed files with 4 additions and 0 deletions

View File

@ -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: