diff --git a/code/espurna/rfbridge.cpp b/code/espurna/rfbridge.cpp index 90747630..6ac7b182 100644 --- a/code/espurna/rfbridge.cpp +++ b/code/espurna/rfbridge.cpp @@ -201,6 +201,7 @@ struct RfbParser { _payload.push_back(c); if ((_payload_offset + _payload_length) == _payload.size()) { switch (_payload_code) { + case CodeLearnOk: case CodeRecvBasic: case CodeRecvProto: _state = &RfbParser::read_end; @@ -209,6 +210,7 @@ struct RfbParser { _state = &RfbParser::read_until_end; break; default: + _state = &RfbParser::stop; break; }