diff --git a/Server/Services/PacketDistributorService.cs b/Server/Services/PacketDistributorService.cs index ab5699d..65b3b51 100644 --- a/Server/Services/PacketDistributorService.cs +++ b/Server/Services/PacketDistributorService.cs @@ -137,7 +137,7 @@ public class PacketDistributorService : IHostedService var packet = this.deserializationMap[item.OperationCode](item.MessageBody); this.logger.PacketData(JsonConvert.SerializeObject(packet)); - this.packetHandlersInstantiation[item.OperationCode].GetType().GetMethod("HandleAsync") + this.packetHandlersInstantiation[item.OperationCode].GetType().GetMethod(nameof(IPacketHandler.HandleAsync)) ?.Invoke(this.packetHandlersInstantiation[item.OperationCode], new object[] { packet, item.Session }); this.logger.PacketFinished(item.Session.Id, item.OperationCode);