device: fix activation_source_schedule() for rescheduling the same function

Fixes: 78ca961c0f
This commit is contained in:
Thomas Haller 2016-12-08 13:24:42 +01:00
parent 92ea1bdb06
commit 994f1ca96e

View file

@ -3837,7 +3837,7 @@ activation_source_schedule (NMDevice *self, ActivationHandleFunc func, int famil
act_data = activation_source_get_by_family (self, family, &source_func);
if (act_data->id && act_data->func != func) {
if (act_data->id && act_data->func == func) {
/* Don't bother rescheduling the same function that's about to
* run anyway. Fixes issues with crappy wireless drivers sending
* streams of associate events before NM has had a chance to process