You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: fix Downloader to dispose tempFile and use synchronous IO (#81)
Fixescoder/internal#598
There is a possible race where if the cancellation token is expired, `Download()` never gets called and the tempFile is never disposed of (at least until GC). We also switch to synchronous IO so that a pending overlapped write won't block the deletion.
These issues can cause races in our tests when we try to clean up the directory.
0 commit comments