Respond with Goodbye! in GoodbyePacket

This commit is contained in:
Oliver Booth 2023-01-22 14:41:14 +00:00
parent a0d686109c
commit 553f7235f1
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@ internal sealed class HelloPacketHandler : PacketHandler<HelloPacket>
public override Task HandleAsync(BaseClientNode recipient, HelloPacket packet, CancellationToken cancellationToken = default)
{
Console.WriteLine($"Client sent {packet.Message}");
return recipient.SendPacketAsync(new GoodbyePacket {Message = "Nope"}, cancellationToken);
return recipient.SendPacketAsync(new GoodbyePacket {Message = "Goodbye!"}, cancellationToken);
}
}