fix: Fixes thread guard and cleans up incoming packet reader (#1641)
### Summary * Fixes syntax compile error when THREADGUARD is enabled. * Removes `int packetLength` from incoming packet handles since they aren't needed. ### Developer Notes Incoming packet handler `SpanReader` is now properly scoped to that packet by length.
This commit is contained in:
parent
25a75fdf24
commit
7d9bc9ff0a
31 changed files with 190 additions and 157 deletions
|
|
@ -76,7 +76,7 @@ public static class AssistantHandler
|
|||
_handshakes[m] = Timer.DelayCall(TimeSpan.FromSeconds(30), OnTimeout, m);
|
||||
}
|
||||
|
||||
public static void AssistVersion(NetState state, SpanReader reader, int packetLength)
|
||||
public static void AssistVersion(NetState state, SpanReader reader)
|
||||
{
|
||||
// We are not supporting the old UOAssist protocol
|
||||
// var assistVersion = reader.ReadInt32();
|
||||
|
|
@ -87,7 +87,7 @@ public static class AssistantHandler
|
|||
state.Assistant = assistVersion.ContainsOrdinal(' ') ? assistVersion : $"RazorCE {assistVersion}";
|
||||
}
|
||||
|
||||
private static void HandshakeResponse(NetState state, SpanReader reader, int packetLength)
|
||||
private static void HandshakeResponse(NetState state, SpanReader reader)
|
||||
{
|
||||
Mobile m = state.Mobile;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue