Skip to content

Commit 549fa03

Browse files
committed
using instance of pre-processor while processing inputs
1 parent fbfda75 commit 549fa03

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/dds.net-server.lib/Core/Internal/IOProcessor/VariablesDatabase.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ protected override int ProcessCommand(VarsDbCommand command)
8080
return 0;
8181
}
8282

83+
84+
private PacketPreprocessor packetPreprocessor = new();
85+
8386
protected override int ProcessInput(DataFromClient input)
8487
{
8588
if (input != null && !string.IsNullOrEmpty(input.ClientRef))
@@ -90,12 +93,12 @@ protected override int ProcessInput(DataFromClient input)
9093
}
9194
else
9295
{
93-
PacketPreprocessor.AddData(input);
96+
packetPreprocessor.AddData(input);
9497

9598
while (true)
9699
{
97100
int offset = 0;
98-
byte[] message = PacketPreprocessor.GetSingleMessage(input.ClientRef);
101+
byte[] message = packetPreprocessor.GetSingleMessage(input.ClientRef);
99102

100103
if (message != null)
101104
{

0 commit comments

Comments
 (0)