Open emilyy-dev opened 1 month ago
The exception comes from the FutureChain, the new future that is appended is already running in the chat thread, and the thenAcceptAsync tries to schedule a new task on the same executor that is currently busy. The chat executor is a ThreadPoolExecutor using a SynchronousQueue, that means it can only schedule tasks if there is a thread waiting for one, and given the max pool size is 1 and that thread is currently busy, it rejects the task. Not entirely sure how this busts the chain
Expected behavior
not get kicked when chatting
Observed/Actual behavior
chat chain is broken and players get kicked
Steps/models to reproduce
misc.chat-threads.chat-executor-max-size
to1
inconfig/paper-global.yml
Plugin and Datapack List
N/A
Paper version
Paper version 1.20.6-115-master@9d6f2cc
Other