onConnectionChanged() trigger now only calls when the mask actually changes