Added method to check if revid is running

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

View File

@ -171,6 +171,10 @@ func (r *revidInst) ErrOut(m string){
r.config.Logger.Log("Debug",m)
}
func (r *revidInst)IsRunning() bool {
return r.isRunning
}
func (r *revidInst) Start() {
if r.isRunning {
r.ErrOut("Start() has been called but revid already running!")