1
0
Fork 0
forked from External/mediamtx

fix windows build (#2360)

This commit is contained in:
Alessandro Ros 2023-09-16 23:21:10 +02:00 committed by GitHub
parent 1f840a1bea
commit bedfa9651a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ func (e *Cmd) runOSSpecific() error {
return errTerminated
case c := <-cmdDone:
if c != nil {
if c != 0 {
return fmt.Errorf("command exited with code %d", c)
}
return nil