Fix WS badmatch

This commit is contained in:
turtled 2019-10-22 09:11:42 +08:00
parent fca7a7e761
commit 1dfbe8e166
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ websocket_handle({binary, Data}, State = #state{channel = Channel}) ->
?LOG(debug, "RECV ~p", [Data]),
Oct = iolist_size(Data),
ok = inc_recv_stats(1, Oct),
{ok, NChannel} = emqx_channel:recvd(Oct, Channel),
NChannel = emqx_channel:recvd(Oct, Channel),
parse_incoming(Data, State#state{channel = NChannel});
%% Pings should be replied with pongs, cowboy does it automatically