Skip to content

Commit 8fa5f8a

Browse files
bzbarsky-applegmarcosb
authored andcommitted
Cancel diagnostic log transfers in Matter.framework when a new one starts. (project-chip#37856)
The goal is to avoid Thread congestion issues.
1 parent c56928e commit 8fa5f8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/darwin/Framework/CHIP/MTRDiagnosticLogsDownloader.mm

+4
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ - (void)downloadLogFromNodeWithID:(NSNumber *)nodeID
419419
{
420420
assertChipStackLockedByCurrentThread();
421421

422+
// Fow now, we only support one download at a time per controller; abort
423+
// any existing ones so we can start this new one.
424+
[self abortDownloadsForController:controller];
425+
422426
uint16_t timeoutInSeconds = 0;
423427
if (timeout <= 0) {
424428
timeoutInSeconds = 0;

0 commit comments

Comments
 (0)