mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Fix typo in Receive method declaration
This commit is contained in:
parent
cf09a50a1c
commit
4bd4450028
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue