summaryrefslogtreecommitdiff
path: root/pkg/mixer
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/mixer')
-rw-r--r--pkg/mixer/mixer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/mixer/mixer.go b/pkg/mixer/mixer.go
index c774342..4db2c3a 100644
--- a/pkg/mixer/mixer.go
+++ b/pkg/mixer/mixer.go
@@ -26,6 +26,7 @@ import (
"container/list"
"errors"
"fmt"
+ // "log"
"strings"
"github.com/scgolang/midi"
@@ -126,6 +127,8 @@ func (m *Mixer) sendEvent(ev Event) {
case ch <- ev:
default:
// subscriber is not respoding...
+ // log.Printf("mixer: removing subscriber '%v', because it is not responding", ch)
+ close(ch)
subs.Remove(sub)
}
}
@@ -214,5 +217,6 @@ func (m *Mixer) Subscribe(ch Channel, out chan<- Event) {
m.subscribers[ch] = subs
}
+ // log.Printf("mixer: subscribing '%v' to events for channel: %v", out, ch)
subs.PushBack(out)
}