From aa3d4a12b542414397c8d8b1a86314aeb85b19c2 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 21 Nov 2015 16:44:03 -0800 Subject: [PATCH] Fix thread tracking --- pk3DS/Tools/ToolsUI.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pk3DS/Tools/ToolsUI.cs b/pk3DS/Tools/ToolsUI.cs index c0eb55a..0a60422 100644 --- a/pk3DS/Tools/ToolsUI.cs +++ b/pk3DS/Tools/ToolsUI.cs @@ -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(); }