This commit is contained in:
Cedric Verstraeten
2023-12-02 13:07:52 +01:00
parent b317a6a9db
commit cb3dce5ffd

View File

@@ -117,6 +117,7 @@ func RunAgent(configDirectory string, configuration *models.Configuration, commu
err := rtspClient.Connect(context.Background())
if err != nil {
log.Log.Error("RunAgent: error connecting to RTSP stream: " + err.Error())
rtspClient.Close()
time.Sleep(time.Second * 3)
return status
}