Skip to content

Commit 3b2957b

Browse files
Cancel diagnostic log transfers in Matter.framework when a new one starts.
The goal is to avoid Thread congestion issues.
1 parent 1612d52 commit 3b2957b

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)