projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4582425
)
Use idle callback and make sure it is not called twice
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 8 Mar 2009 17:23:19 +0000
(18:23 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 8 Mar 2009 17:23:19 +0000
(18:23 +0100)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
ea1cf3c
..
8cda558
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-702,8
+702,10
@@
int connman_network_set_connected(struct connman_network *network,
network->connected = connected;
- if (network->registered == FALSE)
- set_connected(network);
+ if (network->registered == FALSE) {
+ g_idle_add(set_connected, network);
+ return 0;
+ }
signal = dbus_message_new_signal(network->element.path,
CONNMAN_NETWORK_INTERFACE, "PropertyChanged");