fix(tracker/sequencer): add a way to exit the sequencer loop

This commit is contained in:
Matias Lahti
2020-11-08 04:27:52 +02:00
parent d30388a09a
commit b1ac141ea5
3 changed files with 14 additions and 3 deletions

View File

@ -21,7 +21,9 @@ func main() {
app.Size(unit.Dp(800), unit.Dp(600)),
app.Title("Sointu Tracker"),
)
if err := tracker.New(plr).Run(w); err != nil {
t := tracker.New(plr)
defer t.Close()
if err := t.Run(w); err != nil {
fmt.Println(err)
os.Exit(1)
}