projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fc2968
)
Unref openconnect provider on disconnect and remove
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 30 Jul 2010 14:02:44 +0000
(16:02 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 2 Aug 2010 17:16:11 +0000
(19:16 +0200)
plugins/openconnect.c
patch
|
blob
|
history
diff --git
a/plugins/openconnect.c
b/plugins/openconnect.c
index
891aa87
..
c860f27
100644
(file)
--- a/
plugins/openconnect.c
+++ b/
plugins/openconnect.c
@@
-382,6
+382,8
@@
static int oc_disconnect(struct connman_provider *provider)
data->watch = 0;
connman_task_stop(data->task);
+ connman_provider_unref(provider);
+
return 0;
}
@@
-399,6
+401,8
@@
static int oc_remove(struct connman_provider *provider)
data->watch = 0;
connman_task_stop(data->task);
+ connman_provider_unref(provider);
+
g_usleep(G_USEC_PER_SEC);
kill_tun(data->if_name);
return 0;