Small adjustments as I go through the code.

This commit is contained in:
Kamron Batman 2018-09-04 08:58:07 -07:00
parent 4d2965d2de
commit 3f45bd57b9
No known key found for this signature in database
GPG key ID: 9F6247D24FA2AAD4
2 changed files with 25 additions and 25 deletions

View file

@ -3316,7 +3316,7 @@ namespace Server
} }
} }
private static bool _processing = false; private static bool _processing;
public static void ProcessDeltaQueue() public static void ProcessDeltaQueue()
{ {

View file

@ -2135,25 +2135,25 @@ namespace Server.Network
if ( m == null ) if ( m == null )
{ {
state.Dispose(); state.Dispose();
return;
} }
else
{
if ( m.NetState != null )
m.NetState.Dispose();
NetState.ProcessDisposedQueue();
state.Send( new ClientVersionReq() ); m.NetState?.Dispose();
state.BlockAllPackets = true; // TODO: Make this wait one tick so we don't have to call it unnecessarily
NetState.ProcessDisposedQueue();
state.Flags = (ClientFlags)flags; state.Send( new ClientVersionReq() );
state.Mobile = m; state.BlockAllPackets = true;
m.NetState = state;
new LoginTimer( state, m ).Start(); state.Flags = (ClientFlags)flags;
}
state.Mobile = m;
m.NetState = state;
new LoginTimer( state, m ).Start();
} }
} }