Fix thread tracking

This commit is contained in:
Kurt
2015-11-21 16:44:03 -08:00
parent 61eb0810a1
commit aa3d4a12b5

View File

@@ -113,6 +113,7 @@ private void openARC(string path, bool recursing = false)
{
threads++;
bool r = CTR.GARC.garcUnpack(path, folderPath + "_g", SkipDecompression, pBar1);
threads--;
if (r)
batchRenameExtension(newFolder);
else
@@ -144,6 +145,7 @@ private void openARC(string path, bool recursing = false)
{
if (!recursing)
Util.Error("File error:" + Environment.NewLine + path, e.ToString());
threads = 0;
}
System.Media.SystemSounds.Asterisk.Play();
}