Skip to content

Commit

Permalink
Null check tick thread (GeyserMC#1812)
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy authored Jan 6, 2021
1 parent 0641800 commit 92c86cf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,9 @@ public void disconnect(String reason) {
}
}

tickThread.cancel(true);
if (tickThread != null) {
tickThread.cancel(true);
}

this.chunkCache = null;
this.entityCache = null;
Expand Down

0 comments on commit 92c86cf

Please sign in to comment.