mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 04:22:00 -08:00
fix crash when using runOnConnect
This commit is contained in:
parent
b1b6f669dd
commit
a0d076e8f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue