Przeglądaj źródła

Fix WS badmatch

turtled 6 lat temu
rodzic
commit
1dfbe8e166
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/emqx_ws_connection.erl

+ 1 - 1
src/emqx_ws_connection.erl

@@ -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