Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web-MQTT: don't call FHC when connection terminates early
When the Web-MQTT connection terminates early because of no supported subprotocol, `terminate/3` called fhc release although no fhc obtain was called yet. This was the case even when `use_file_handle_cache` was false, because `#state.should_use_fhc` was not initialized. Fixing this avoids the below harmless warning ``` [debug] error updating ets counter <0.1224.0> in table #Ref<0.2797411137.1366163457.189876>: [{ets, update_counter, [#Ref<0.2797411137.1366163457.189876>, <0.1224.0>, {5, -1}], ... [warning] FHC: failed to update counter 'obtained_socket', client pid: <0.1224.0> ```
- Loading branch information