Skip to content

Commit e758340

Browse files
authored
Fixing bug with string GMCP messages (#313)
# Changes * Fixing a bug for GMCP data sent as string payload, double appending module name.
1 parent a46d341 commit e758340

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

modules/gmcp.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,6 @@ func (g *GMCPModule) dispatchGMCP(e events.Event) events.ListenerReturn {
388388
fmt.Println(string(v))
389389
}
390390

391-
if len(gmcp.Module) > 0 {
392-
v = gmcp.Module + ` ` + v
393-
}
394-
395391
connections.SendTo(GmcpPayload.BytesWithPayload([]byte(v)), connId)
396392
default:
397393
payload, err := json.Marshal(gmcp.Payload)

0 commit comments

Comments
 (0)