Simplify event types
This commit is contained in:
@ -68,7 +68,7 @@ switch(type) {
|
||||
|
||||
void ServerConnection::processReceivedBytes(uint8_t* payload, size_t length) {
|
||||
if (length != AUTHENTICATED_MESSAGE_SIZE) {
|
||||
sendFailureResponse(SesameEvent::InvalidPayloadSize);
|
||||
sendFailureResponse(SesameEvent::InvalidMessageData);
|
||||
return;
|
||||
}
|
||||
AuthenticatedMessage* message = (AuthenticatedMessage*) payload;
|
||||
|
Reference in New Issue
Block a user