Open ZakBerkelaar opened 3 years ago
While looking over the code I see that in Server.cs
there seem to be 2 tasks running handle command. potentially even one per thread (this is almost certainly a race condition).
Also the worlds
dictionary is NOT being accessed safely as there seem to be multiple threads that could potentially be running at the same time (multiple worlds) however this Dictionary is not concurrent. I'm not sure if a mutex or ConcurrentDictionary should be used or potentially even another solution.
The bug label has been assigned due to the aforementioned concurrency issues.
The server's code has once again become a mess and should be cleaned up.