From 994f1ca96ea7d675b61006f8199a003354e8d12a Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 8 Dec 2016 13:24:42 +0100 Subject: [PATCH] device: fix activation_source_schedule() for rescheduling the same function Fixes: 78ca961c0fd0e5b563e33306299bd1058fa2e289 --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index e46983b1cd..2785a1a890 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -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