fix a crash
All checks were successful
/ Build BaseBand (push) Successful in 2m43s

This commit is contained in:
Daniella / Tove 2024-10-05 11:24:46 +02:00
parent 4e01c3e4e9
commit 6985663cbf
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ public class Ping extends Feature {
}
@Override
public void onTick() {
public synchronized void onTick() {
while (true) {
PacketHolder holder = this.holderSend.peek();
if(holder == null || !holder.passed())
@ -75,7 +75,7 @@ public class Ping extends Feature {
}
}
public void onDisable() {
public synchronized void onDisable() {
totalRecieved = 0;
totalSent = 0;
if(notIngame()) {