mirror of
https://github.com/kerberos-io/agent.git
synced 2025-11-01 12:12:39 +08:00
closing
This commit is contained in:
@@ -117,6 +117,7 @@ func RunAgent(configDirectory string, configuration *models.Configuration, commu
|
|||||||
err := rtspClient.Connect(context.Background())
|
err := rtspClient.Connect(context.Background())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Log.Error("RunAgent: error connecting to RTSP stream: " + err.Error())
|
log.Log.Error("RunAgent: error connecting to RTSP stream: " + err.Error())
|
||||||
|
rtspClient.Close()
|
||||||
time.Sleep(time.Second * 3)
|
time.Sleep(time.Second * 3)
|
||||||
return status
|
return status
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user