1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 10:41:41 +01:00

returning if a thread is not alive should happen before any changes to

the list of workers, hence the return statement should be in the
synchronized block.

By: Andrew Ardill <andrew.ardill@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-02-21 12:30:45 +11:00
parent 70098c0548
commit ed40bc0373

View file

@ -61,8 +61,8 @@ public class CraftThreadManager {
return craftWorker.isAlive();
}
}
// didn't find it, so it must have been removed
return false;
}
// didn't find it, so it must have been removed
return false;
}
}