mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -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
|
// Stream assume to be locked
|
||||||
func (ts *Stream) KillHead(encoder_id int) {
|
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
|
return
|
||||||
}
|
}
|
||||||
ts.heads[encoder_id].command.Process.Signal(os.Interrupt)
|
ts.heads[encoder_id].command.Process.Signal(os.Interrupt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user