-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix memory leak in
NsfwWatcher
(#12144)
Don't repeatedly call `Promise.race()`. The code was calling `Promise.race()` repeatedly while waiting for a file to come into existence. This added a `PromiseReaction` object each time, which never was collected. Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]> Co-authored-by: Paul Marechal <[email protected]>
- Loading branch information
1 parent
7f33d28
commit 6959b6a
Showing
1 changed file
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters