blobbyvolley2 icon indicating copy to clipboard operation
blobbyvolley2 copied to clipboard

Deadlock in ThreadSafeRakServer

Open danielknobe opened this issue 11 months ago • 0 comments

When we shutdown the ThreadSafeRakServer (Disconnect method) we wait for the other thread (by observing isMainLoopThreadActive) to finish. Because of the lock it is possible that the thread never stops (Receive call in DedicatedServer class is blocked because Disconnect call holds lock and is checking isMainLoopThreadActive in an infinite loop which never become false. The result is a deadlock.

This behavior can be observed be restarting the lan server multiple times in blobby client.

danielknobe avatar Sep 06 '23 20:09 danielknobe