don't call zoning when zoning is not happening, wait for mark offline on players, fixes initial data application after zoning

This commit is contained in:
rootdarkarchon
2023-05-07 02:00:36 +02:00
parent 0a80531836
commit effe6c2839
3 changed files with 41 additions and 22 deletions

View File

@@ -133,10 +133,19 @@ public class Pair
public void MarkOffline()
{
_onlineUserIdentDto = null;
LastReceivedCharacterData = null;
CachedPlayer?.Dispose();
CachedPlayer = null;
try
{
_creationSemaphore.Wait();
_onlineUserIdentDto = null;
LastReceivedCharacterData = null;
var player = CachedPlayer;
CachedPlayer = null;
player?.Dispose();
}
finally
{
_creationSemaphore.Release();
}
}
public void SetNote(string note)