diff --git a/SparkleLib/SparkleFetcherBase.cs b/SparkleLib/SparkleFetcherBase.cs index 2be441c8..440c0e44 100755 --- a/SparkleLib/SparkleFetcherBase.cs +++ b/SparkleLib/SparkleFetcherBase.cs @@ -240,6 +240,8 @@ namespace SparkleLib { // WaitForExit, or it will hang forever on output > 4096 bytes string fingerprint = process.StandardOutput.ReadToEnd ().Trim (); process.WaitForExit (); + + File.Delete (tmp_file_path); try { fingerprint = fingerprint.Substring (fingerprint.IndexOf (" ") + 1, 47); @@ -249,8 +251,6 @@ namespace SparkleLib { return null; } - File.Delete (tmp_file_path); - return fingerprint; }