Skip to content

Commit

Permalink
Fix stack overflow / save logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Trophonix committed Aug 11, 2020
1 parent 0b0d714 commit 8a791b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/trophonix/tradeplus/TradePlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.trophonix.tradeplus.util.InvUtils;
import com.trophonix.tradeplus.util.Sounds;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.plugin.java.JavaPlugin;
Expand Down Expand Up @@ -58,6 +59,7 @@ public void onLoad() {
} catch (Throwable ignored) {
getLogger().info("Failed to hook into worldguard. Ignore this if you don't have worldguard.");
}
Bukkit.getScheduler().runTaskTimer(this, () -> logs.save(), 5 * 60 * 20, 5 * 60 * 20);
}

@Override
Expand Down

1 comment on commit 8a791b9

@leviem1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Trophonix This isn't going to fix the stack overflow. This is an error caused by circular references. Now the error just happens at a regular interval, further spamming the logs and tanking server performance.

Please sign in to comment.