File tree 2 files changed +14
-4
lines changed 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -690,12 +690,19 @@ - (void)cleanupReconnectTimer {
690
690
waitUntilDone: NO ];
691
691
return ;
692
692
}
693
-
694
- [self .reconnectTimer invalidate ];
695
- self.reconnectTimer = nil ;
693
+
694
+ [self invalidateReconnectTimer ];
696
695
}
697
696
}
698
697
698
+ - (void )invalidateReconnectTimer {
699
+ __weak AWSIoTMQTTClient *weakSelf = self;
700
+ dispatch_async (self.timerQueue , ^{
701
+ [weakSelf.reconnectTimer invalidate ];
702
+ weakSelf.reconnectTimer = nil ;
703
+ });
704
+ }
705
+
699
706
- (void )cleanUpWebsocketOutputStream {
700
707
@synchronized (self) {
701
708
if (self.websocketOutputStream ) {
Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
- -Features for next release
5
+ ### Bug Fixes
6
+
7
+ - ** AWSIoT**
8
+ - Fixing a race condition when invalidating/creating the reconnect timer (#5454 )
6
9
7
10
## 2.37.2
8
11
You can’t perform that action at this time.
0 commit comments