Fix typo in Receive method declaration

This commit is contained in:
Felony 2019-10-02 17:27:13 +03:30 committed by Afshin Arani
parent cf09a50a1c
commit 4bd4450028
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ namespace TLSharp.Core.Network
public async Task<byte[]> Receive()
{
var result = await _transport.Receieve();
var result = await _transport.Receive();
using (var memoryStream = new MemoryStream(result.Body))
{

View file

@ -131,7 +131,7 @@ namespace TLSharp.Core.Network
{
while (!request.ConfirmReceived)
{
var result = DecodeMessage((await _transport.Receieve()).Body);
var result = DecodeMessage((await _transport.Receive()).Body);
using (var messageStream = new MemoryStream(result.Item1, false))
using (var messageReader = new BinaryReader(messageStream))

View file

@ -43,7 +43,7 @@ namespace TLSharp.Core.Network
sendCounter++;
}
public async Task<TcpMessage> Receieve()
public async Task<TcpMessage> Receive()
{
var packetLengthBytes = new byte[4];
if (await _stream.ReadAsync(packetLengthBytes, 0, 4) != 4)