Fixed multiplayer thread sleep bug