mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +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(),
|
||||
"exit_code": exiterr.ExitCode(),
|
||||
"exit_string": exiterr.String(),
|
||||
"signal": status.Signal().String(),
|
||||
"signal": int(status.Signal()),
|
||||
}).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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user