We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b573ef8 commit 4332739Copy full SHA for 4332739
1 file changed
Core/src/main/java/com/plotsquared/core/database/SQLManager.java
@@ -562,12 +562,8 @@ public synchronized boolean sendBatch() {
562
this.connection.setAutoCommit(true);
563
}
564
565
- if (!this.clusterTasks.isEmpty()) {
566
- this.clusterTasks.clear();
567
- }
568
- if (!this.plotTasks.isEmpty()) {
569
- this.plotTasks.clear();
570
+ this.clusterTasks.entrySet().removeIf(e -> e.getValue().isEmpty());
+ this.plotTasks.entrySet().removeIf(e -> e.getValue().isEmpty());
571
} catch (Throwable e) {
572
LOGGER.error("============ DATABASE ERROR ============");
573
LOGGER.error("There was an error updating the database.");
0 commit comments