mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-15 03:14:15 +01:00
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:
parent
0a80531836
commit
effe6c2839
3 changed files with 41 additions and 22 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue