summaryrefslogtreecommitdiff
path: root/src/technology.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/technology.c')
-rw-r--r--src/technology.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/technology.c b/src/technology.c
index 4d8eb03d..ae381aad 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -693,9 +693,8 @@ int __connman_technology_enabled(enum connman_service_type type)
if (g_atomic_int_get(&technology->blocked))
return -ERFKILL;
- __connman_notifier_enable(type);
-
if (g_atomic_int_exchange_and_add(&technology->enabled, 1) == 0) {
+ __connman_notifier_enable(type);
technology->state = CONNMAN_TECHNOLOGY_STATE_ENABLED;
state_changed(technology);
}