diff options
author | Justin Beharry <justin.beharry@livio.io> | 2022-08-29 11:12:59 -0400 |
---|---|---|
committer | Justin Beharry <justin.beharry@livio.io> | 2022-08-29 11:12:59 -0400 |
commit | 37e476b1721f3778eb935aa22bd177290c093a39 (patch) | |
tree | 2c75b56909025ae56240ab6429d22af59013ced4 | |
parent | 4342db0eef9775b919b73fc6ad84fd9d4fa9c952 (diff) | |
download | sdl_ios-37e476b1721f3778eb935aa22bd177290c093a39.tar.gz |
Don't cancel text and graphic update operations
Allow update operations to run sequentialy in order to catch errors
-rw-r--r-- | SmartDeviceLink/private/SDLTextAndGraphicManager.m | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/SmartDeviceLink/private/SDLTextAndGraphicManager.m b/SmartDeviceLink/private/SDLTextAndGraphicManager.m index d4c665b38..35daf8323 100644 --- a/SmartDeviceLink/private/SDLTextAndGraphicManager.m +++ b/SmartDeviceLink/private/SDLTextAndGraphicManager.m @@ -167,10 +167,6 @@ NS_ASSUME_NONNULL_BEGIN - (void)sdl_updateAndCancelPreviousOperations:(BOOL)supersedePreviousOperations completionHandler:(nullable SDLTextAndGraphicUpdateCompletionHandler)handler { SDLLogD(@"Updating text and graphics"); - if (self.transactionQueue.operationCount > 0 && supersedePreviousOperations) { - SDLLogV(@"Transactions already exist, cancelling them"); - [self.transactionQueue cancelAllOperations]; - } __weak typeof(self) weakSelf = self; SDLTextAndGraphicUpdateOperation *updateOperation = [[SDLTextAndGraphicUpdateOperation alloc] initWithConnectionManager:self.connectionManager fileManager:self.fileManager currentCapabilities:self.windowCapability currentScreenData:self.currentScreenData newState:[self currentState] currentScreenDataUpdatedHandler:^(SDLTextAndGraphicState *_Nullable newScreenData, NSError *_Nullable error, SDLTextAndGraphicState *_Nullable errorScreenData) { |