From 08bf41714797349928c4afe4d5cf39cdae91eec0 Mon Sep 17 00:00:00 2001 From: Sebastian Villena <97059974+ruisebas@users.noreply.github.com> Date: Tue, 16 Jul 2024 12:37:31 -0400 Subject: [PATCH] fix(IoT): Fixing a potential race condition on topic listeners (#5402) --- AWSComprehendTests/AWSComprehendTests.swift | 2 +- AWSIoT/Internal/AWSIoTMQTTClient.m | 4 ++-- CHANGELOG.md | 24 ++++++++++++++++----- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/AWSComprehendTests/AWSComprehendTests.swift b/AWSComprehendTests/AWSComprehendTests.swift index 235459cfb26..83d57f30e47 100644 --- a/AWSComprehendTests/AWSComprehendTests.swift +++ b/AWSComprehendTests/AWSComprehendTests.swift @@ -139,7 +139,7 @@ class AWSComprehendTests: XCTestCase { let comprehendClient = AWSComprehend.default() let detectSentimentRequest = AWSComprehendDetectSentimentRequest() detectSentimentRequest!.languageCode = AWSComprehendLanguageCode.en - detectSentimentRequest!.text = "I have no strong feelings one way or the other" + detectSentimentRequest!.text = "This sentence is a statement of fact" comprehendClient.detectSentiment(detectSentimentRequest!).continueWith{ (task)-> Any? in if let error = task.error { diff --git a/AWSIoT/Internal/AWSIoTMQTTClient.m b/AWSIoT/Internal/AWSIoTMQTTClient.m index 5e51604c4a9..1650db6f147 100644 --- a/AWSIoT/Internal/AWSIoTMQTTClient.m +++ b/AWSIoT/Internal/AWSIoTMQTTClient.m @@ -38,7 +38,7 @@ @interface AWSIoTMQTTClient()