Skip to content

Commit

Permalink
chore(IoT): optimistic workaround for cleaning up nsoutputstream (aws…
Browse files Browse the repository at this point in the history
  • Loading branch information
wooj2 authored and gabek committed Aug 31, 2023
1 parent 64b5d86 commit d04713d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AWSIoT/Internal/AWSIoTMQTTClient.m
Expand Up @@ -647,8 +647,8 @@ - (void)cleanupReconnectTimer {

- (void)cleanUpToDecoderStream {
self.toDecoderStream.delegate = nil;
[self.toDecoderStream removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[self.toDecoderStream close];
[self.toDecoderStream removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
self.toDecoderStream = nil;
}

Expand Down

0 comments on commit d04713d

Please sign in to comment.