Commit 1c992ebd authored by Christian Schudt's avatar Christian Schudt

PluginManager: Increment count variable to prevent possibly infinite loop.

parent a602c8b6
......@@ -1001,7 +1001,7 @@ public class PluginManager {
if (firstRun) {
int count = 0;
// Attempt to delete the folder for up to 5 seconds.
while (!deleteDir(dir) && count < 5) {
while (!deleteDir(dir) && count++ < 5) {
Thread.sleep(1000);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment