The effect of Joule dissipation on field line resonance