fix(tracker): do not close Broker but rather just close the detector

This commit is contained in:
2024-11-02 20:45:10 +02:00
parent 943073d0cc
commit 94058c2603
6 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -265,7 +265,6 @@ func FuzzModel(f *testing.F) {
reader := bytes.NewReader(slice)
synther := vm.GoSynther{}
broker := tracker.NewBroker()
defer broker.Close()
model, player := tracker.NewModelPlayer(broker, synther, NullContext{}, "")
buf := make([][2]float32, 2048)
closeChan := make(chan struct{})
@@ -309,5 +308,6 @@ func FuzzModel(f *testing.F) {
}
}
closeChan <- struct{}{}
broker.ToDetector <- tracker.MsgToDetector{Quit: true}
})
}