fixed wrong message size, again
This commit is contained in:
2
main.go
2
main.go
@@ -69,7 +69,7 @@ func (daemon *LedDaemon) receive() {
|
||||
log.Debugf("[%s] Read %d bytes, first protobuf is %d long", daemon.name, length, msgLen)
|
||||
|
||||
backendMsg := &ledd.BackendWrapperMessage{}
|
||||
err = proto.Unmarshal(message[4:msgLen], backendMsg)
|
||||
err = proto.Unmarshal(message[4:msgLen+4], backendMsg)
|
||||
if err != nil {
|
||||
log.Warningf("[%s] Couldn't decode protobuf msg!", daemon.name)
|
||||
continue
|
||||
|
Reference in New Issue
Block a user