diff --git a/src/enoise_connection.erl b/src/enoise_connection.erl index b90358a..9e6607d 100644 --- a/src/enoise_connection.erl +++ b/src/enoise_connection.erl @@ -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) -> <> = Buf, - {{ok, Data}, S#state{ buf = Buf }}. + {{ok, Data}, S#state{ buf = NewBuf }}.