Commit 815ae6cc authored by nanahira's avatar nanahira

fix download cut

parent 1f4146c3
...@@ -19,7 +19,10 @@ public class HttpDldFile ...@@ -19,7 +19,10 @@ public class HttpDldFile
{ {
Directory.CreateDirectory(Path.GetDirectoryName(filename)); Directory.CreateDirectory(Path.GetDirectoryName(filename));
} }
if (File.Exists(filename + ".tmp"))
{
File.Delete(filename + ".tmp");
}
using (var client = new TimeoutWebClient()) using (var client = new TimeoutWebClient())
{ {
ServicePointManager.ServerCertificateValidationCallback = MyRemoteCertificateValidationCallback; ServicePointManager.ServerCertificateValidationCallback = MyRemoteCertificateValidationCallback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment