mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-06 06:36:25 +00:00
Fix new heads kill segf
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user