summaryrefslogtreecommitdiff
path: root/SmartDeviceLink
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink')
-rw-r--r--SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m b/SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m
index 893ed6512..90bc3b157 100644
--- a/SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m
+++ b/SmartDeviceLink/private/SDLProtocolReceivedMessageProcessor.m
@@ -82,6 +82,10 @@ typedef NS_ENUM(NSUInteger, ProcessorState) {
messageReadyBlock(self.header, [self.payloadBuffer copy]);
[self resetState];
}
+ //If we end up in error state, trigger the reset so we can properly handle the next byte
+ if (_state == ERROR_STATE) {
+ [self resetState];
+ }
}
}