The author presents an adaptive mesh refinement strategy based on T-coercivity to ensure quasi-optimality of the Galerkin finite element method for the Helmholtz equation.