projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f3e275
)
Remove the DNS TCP listener watch when the socket is closed
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 24 Sep 2010 15:18:34 +0000
(17:18 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 24 Sep 2010 15:18:34 +0000
(17:18 +0200)
plugins/dnsproxy.c
patch
|
blob
|
history
diff --git
a/plugins/dnsproxy.c
b/plugins/dnsproxy.c
index
28c8ef0
..
1b7cd32
100644
(file)
--- a/
plugins/dnsproxy.c
+++ b/
plugins/dnsproxy.c
@@
-862,8
+862,12
@@
static gboolean tcp_listener_event(GIOChannel *channel, GIOCondition condition,
DBG("condition 0x%x", condition);
if (condition & (G_IO_NVAL | G_IO_ERR | G_IO_HUP)) {
- connman_error("Error with TCP listener channel");
+ if (tcp_listener_watch > 0)
+ g_source_remove(tcp_listener_watch);
tcp_listener_watch = 0;
+
+ connman_error("Error with TCP listener channel");
+
return FALSE;
}