diff options
Diffstat (limited to 'pkg/controller/controller.go')
-rw-r--r-- | pkg/controller/controller.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 36c3776..fb5f5ca 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -110,7 +110,7 @@ func NewController(c Config) (*Controller, error) { return ctrl, nil } -func (c *Controller) sendEvent(ev Event) { +func (c *Controller) publishEvent(ev Event) { c.subscribersLock.Lock() defer c.subscribersLock.Unlock() @@ -152,7 +152,7 @@ func (c *Controller) handleMidiPacket(p midi.Packet) { // ignore all other events return } - c.sendEvent(ev) + c.publishEvent(ev) } func (c *Controller) Init() error { |