mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Core(MtProtoSender): remove mutation-based dangerous API
It wasn't being used internally, and the use-case to be used
externally is too intricated. There's already a way to change
the handler at contructor time[1] so that should be enough
customization.
[1] 48077961ae
This commit is contained in:
parent
3762664c14
commit
e6250b1234
|
|
@ -29,11 +29,6 @@ namespace TLSharp.Core.Network
|
|||
_session = session;
|
||||
}
|
||||
|
||||
public void ChangeTransport(TcpTransport transport)
|
||||
{
|
||||
_transport = transport;
|
||||
}
|
||||
|
||||
private int GenerateSequence(bool confirmed)
|
||||
{
|
||||
return confirmed ? _session.Sequence++ * 2 + 1 : _session.Sequence * 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue