summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2021-09-09 08:37:20 -0400
committerJoel Fischer <joeljfischer@gmail.com>2021-09-09 08:37:20 -0400
commite3d8ab0d27f0169941899e5951045948bb87b1d7 (patch)
tree44b482ac65f0b3e613fbfcb0d6ee7aa09e2384dd
parent7aacb05eb27a0624ed1506812a455be2db95bb40 (diff)
downloadsdl_ios-e3d8ab0d27f0169941899e5951045948bb87b1d7.tar.gz
Fix still setting menu configuration if it fails
-rw-r--r--SmartDeviceLink/private/SDLMenuManager.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLMenuManager.m b/SmartDeviceLink/private/SDLMenuManager.m
index 9bae9f7b8..731449dd5 100644
--- a/SmartDeviceLink/private/SDLMenuManager.m
+++ b/SmartDeviceLink/private/SDLMenuManager.m
@@ -168,6 +168,7 @@ NS_ASSUME_NONNULL_BEGIN
SDLMenuConfigurationUpdateOperation *configurationUpdateOp = [[SDLMenuConfigurationUpdateOperation alloc] initWithConnectionManager:self.connectionManager windowCapability:self.windowCapability newMenuConfiguration:menuConfiguration configurationUpdatedHandler:^(SDLMenuConfiguration *newMenuConfiguration, NSError *_Nullable error) {
if (error != nil) {
SDLLogE(@"Error updating menu configuration: %@", error);
+ return;
}
weakself.currentMenuConfiguration = newMenuConfiguration;
[weakself sdl_updateMenuReplaceOperationsWithNewMenuConfiguration];