diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2021-09-09 08:37:20 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2021-09-09 08:37:20 -0400 |
commit | e3d8ab0d27f0169941899e5951045948bb87b1d7 (patch) | |
tree | 44b482ac65f0b3e613fbfcb0d6ee7aa09e2384dd | |
parent | 7aacb05eb27a0624ed1506812a455be2db95bb40 (diff) | |
download | sdl_ios-e3d8ab0d27f0169941899e5951045948bb87b1d7.tar.gz |
Fix still setting menu configuration if it fails
-rw-r--r-- | SmartDeviceLink/private/SDLMenuManager.m | 1 |
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]; |