Fix for exiting while aborting write-backs.

The text update can hang on exit thus not reducing the amount of
'threads'; by removing the thread tracking before updating text we can
close.
This commit is contained in:
Kurt
2015-03-13 20:20:54 -07:00
parent 824379c00b
commit 04a02bd001

View File

@@ -524,7 +524,7 @@ public bool getGARC(string infile, string outfolder, bool PB, bool bypassExt = f
public bool setGARC(string outfile, string infolder, bool PB)
{
if (ModifierKeys == Keys.Control && Util.Prompt(MessageBoxButtons.YesNo, "Cancel writing data back to GARC?") == DialogResult.Yes)
{ updateStatus(String.Format("Aborted!"), false); threads--; return false; }
{ threads--; updateStatus(String.Format("Aborted!"), false); return false; }
try
{