Fixed bug!

This commit is contained in:
Unknown 2018-01-23 16:04:48 +10:30
parent 6434d3c0f7
commit 7f15e2e6d2
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ func (r *revidInst) Start() {
h264Data = make([]byte, 1)
_, err := io.ReadFull(inputReader, h264Data)
if err != nil {
if err.Error() == "EOF" {
if err.Error() == "EOF" && r.isRunning {
r.ErrOut("No data from camera!")
time.Sleep(5*time.Second)
} else {