Skip to content

Commit 283bc76

Browse files
committed
Terminate worker when done handling profile
1 parent 15fbfc3 commit 283bc76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-devtools-scheduling-profiler/src/SchedulingProfiler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function createDataResourceFromImportedFile(file: File): ProfilerDataResource {
4545
reject(data.error);
4646
break;
4747
}
48+
worker.terminate();
4849
};
4950
worker.postMessage({file});
5051
});

0 commit comments

Comments
 (0)