Fix typo bug

This commit is contained in:
Hans Svensson 2018-03-07 11:23:21 +01:00
parent d81f1eb32e
commit 4791d15f2e

View File

@ -124,6 +124,6 @@ handle_recv(S = #state{ buf = Buf, rx = Rx, tcp_sock = TcpSock }, Len, TO)
end;
handle_recv(S = #state{ buf = Buf }, Len, _TO) ->
<<Data:Len/binary, NewBuf/binary>> = Buf,
{{ok, Data}, S#state{ buf = Buf }}.
{{ok, Data}, S#state{ buf = NewBuf }}.