mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
Change preventing reconnect from SIGABRT to SIGHUP. SIGABRT is used on panic in ffmpeg
This commit is contained in:
@@ -1031,10 +1031,10 @@ func (p *process) waiter() {
|
|||||||
"status": status.ExitStatus(),
|
"status": status.ExitStatus(),
|
||||||
"exit_code": exiterr.ExitCode(),
|
"exit_code": exiterr.ExitCode(),
|
||||||
"exit_string": exiterr.String(),
|
"exit_string": exiterr.String(),
|
||||||
"signal": status.Signal().String(),
|
"signal": int(status.Signal()),
|
||||||
}).Debug().Log("Exited")
|
}).Debug().Log("Exited")
|
||||||
|
|
||||||
if int(status.Signal()) == 6 { // If ffmpeg has been killed with SIGABRT, it will disable a reconnect.
|
if int(status.Signal()) == 1 { // If ffmpeg has been killed with SIGHUP, it will disable a reconnect.
|
||||||
enableReconnect = false
|
enableReconnect = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user