mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 15:19:47 +00:00
Fix bug in mtp_intermediate
This commit is contained in:
parent
9403f11e9e
commit
e5533b75dc
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ new(Opts) ->
|
|||
-spec try_decode_packet(binary(), codec()) -> {ok, binary(), codec()}
|
||||
| {incomplete, codec()}.
|
||||
try_decode_packet(<<Len:32/unsigned-little, _/binary>> = Data,
|
||||
#int_st{buffer = <<>>} = St) when Len < ?MAX_SIZE ->
|
||||
#int_st{buffer = <<>>} = St) ->
|
||||
Len1 = case Len < ?MAX_SIZE of
|
||||
true -> Len;
|
||||
false -> Len - ?MAX_SIZE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue