mirror of
https://github.com/k1tbyte/Wand-Enhancer.git
synced 2026-08-28 17:01:04 +00:00
7e8cadff24
The loop "for (int i = 0; processes.Length > i || i < 5; i++)" compared the process count to the loop index and, because of the "|| i < 5", always ran at least 5 iterations of Thread.Sleep(250) -- stalling ~1.25s before every patch/restore even when WeMod was not running. Use "processes.Length > 0 && i < 5" so it retries only while a target process is still alive, capped at 5 attempts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>