Skip to content

Commit c6ec014

Browse files
committed
fix osc.Dispatcher usage
1 parent 106fea7 commit c6ec014

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

client.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -453,19 +453,19 @@ func (c *Client) FreeAll(gids ...int32) error {
453453

454454
// addOscHandlers adds OSC handlers
455455
func (c *Client) oscHandlers() osc.Dispatcher {
456-
return map[string]osc.Method{
457-
statusReplyAddress: func(msg osc.Message) error {
456+
return map[string]osc.MessageHandler{
457+
statusReplyAddress: osc.Method(func(msg osc.Message) error {
458458
c.statusChan <- msg
459459
return nil
460-
},
461-
doneOscAddress: func(msg osc.Message) error {
460+
}),
461+
doneOscAddress: osc.Method(func(msg osc.Message) error {
462462
c.doneChan <- msg
463463
return nil
464-
},
465-
gqueryTreeReplyAddress: func(msg osc.Message) error {
464+
}),
465+
gqueryTreeReplyAddress: osc.Method(func(msg osc.Message) error {
466466
c.gqueryTreeChan <- msg
467467
return nil
468-
},
468+
}),
469469
}
470470
}
471471

0 commit comments

Comments
 (0)