mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-20 22:21:01 +00:00
fix crash when using runOnConnect
This commit is contained in:
parent
b1b6f669dd
commit
a0d076e8f0
@ -193,7 +193,7 @@ func (c *client) run() {
|
||||
var onConnectCmd *exec.Cmd
|
||||
if c.p.conf.RunOnConnect != "" {
|
||||
var err error
|
||||
onConnectCmd, err = startExternalCommand(c.p.conf.RunOnConnect, c.path.name)
|
||||
onConnectCmd, err = startExternalCommand(c.p.conf.RunOnConnect, "")
|
||||
if err != nil {
|
||||
c.log("ERR: %s", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user