Fix: revert timings

This commit is contained in:
Thomas Quandalle
2022-06-23 17:11:29 +02:00
parent 5469f0bdea
commit 02caa1d12f
+2 -3
View File
@@ -132,12 +132,11 @@ func RunAgent(configuration *models.Configuration, communication *models.Communi
decoder.Close()
// Waiting for some seconds to make sure everything is properly closed.
time.Sleep(time.Second * 1)
log.Log.Info("RunAgent: waiting 1 second to make sure everything is properly closed.")
time.Sleep(time.Second * 1)
} else {
time.Sleep(time.Second * 2)
log.Log.Error("Something went wrong while opening RTSP: " + err.Error())
time.Sleep(time.Second * 3)
}
log.Log.Debug("RunAgent: finished")