mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix new heads kill segf
This commit is contained in:
parent
2968ca3562
commit
51d3684fcc
@ -411,7 +411,7 @@ func (ts *Stream) Kill() {
|
||||
|
||||
// Stream assume to be locked
|
||||
func (ts *Stream) KillHead(encoder_id int) {
|
||||
if ts.heads[encoder_id] == DeletedHead {
|
||||
if ts.heads[encoder_id] == DeletedHead || ts.heads[encoder_id].command == nil {
|
||||
return
|
||||
}
|
||||
ts.heads[encoder_id].command.Process.Signal(os.Interrupt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user