Important Users lookup cost a long time in server thread
SeraphJACK opened this issue ยท 1 comments
Issue type:
- ๐ Bug
Short description:
When I tried to start a server with this mod, it stucked and thread dump shows that CyclopsCore is blocking the main thread due to network IO.
Steps to reproduce the problem:
- Start the game with this mod.
Expected behavior:
Do it off main thread.
Notes
Seems you tried to do it off main thread, but you may use Thread::start
instead of Thread::run
, which is simply calling that Runnable in main thread.