channel should not close on destroy

This commit is contained in:
mbattista 2023-01-29 19:39:19 +01:00 committed by Miroslav Šedivý
parent 628c6a1b77
commit fdf17cfe77

View File

@ -99,7 +99,6 @@ func (p *Pipeline) Destroy() {
delete(pipelines, p.id) delete(pipelines, p.id)
pipelinesLock.Unlock() pipelinesLock.Unlock()
close(p.Sample)
C.free(unsafe.Pointer(p.Ctx)) C.free(unsafe.Pointer(p.Ctx))
p = nil p = nil
} }