We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa53a1a commit 93073faCopy full SHA for 93073fa
MencoderSharp/MencoderBase.cs
@@ -126,7 +126,23 @@ protected virtual void Dispose(bool disposing)
126
Task.Delay(5).Wait();
127
}
128
129
- File.Delete(PathToExternalMencoderBin);
+ while (File.Exists(PathToExternalMencoderBin))
130
+ {
131
+ var timeout = 0;
132
+ try
133
134
+ File.Delete(PathToExternalMencoderBin);
135
+ }
136
+ catch (UnauthorizedAccessException)
137
138
+ if (timeout > 100)
139
140
+ throw;
141
142
+ timeout++;
143
+ Task.Delay(5).Wait();
144
145
146
147
148
disposedValue = true;
0 commit comments