mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Fix access
This commit is contained in:
1 parent
fb99ecf235
commit
60f49cff58
1 file changed
+2
-2
@@ -36,11 +36,11 @@ public enum FabricChatCallback {
|
||||
private @Nullable ExecutorService chatExecutor;
|
||||
private final List<Consumer<Chat>> listeners = new LinkedList<>();
|
||||
|
||||
public void initExecutor() {
|
||||
private void initExecutor() {
|
||||
this.chatExecutor = Executors.newSingleThreadExecutor(new NamedThreadFactory("CarbonChat-ChatThread"));
|
||||
}
|
||||
|
||||
public void shutdownExecutor() {
|
||||
private void shutdownExecutor() {
|
||||
final @Nullable ExecutorService executor = this.chatExecutor;
|
||||
if (executor == null) {
|
||||
LOGGER.warn("Tried to shutdown null executor!");
|
||||
|
||||
Reference in new issue
Block a user