Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/midi/out.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"strings"
"time"

"github.com/cholick/midi-cli/pkg/rtmidi"
"github.com/samber/lo"
Expand Down Expand Up @@ -163,6 +164,9 @@ func (o *out) Panic(channel int) error {
}

func (o *out) Close() {
// hammered at this a bit, but tests flaked without the sleep
// was never an issue on a faster machine, but worth leaving in
time.Sleep(100 * time.Millisecond)
_ = o.midiOut.Close()
}

Expand Down