projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1949b89
)
agent: Remove socket on read error
author
Olivier Crête
<olivier.crete@collabora.com>
Tue, 8 Mar 2016 20:37:05 +0000
(15:37 -0500)
committer
Olivier Crête
<olivier.crete@collabora.com>
Mon, 30 May 2016 23:20:19 +0000
(19:20 -0400)
If a socket returned an error, remove it.
agent/agent.c
patch
|
blob
|
history
diff --git
a/agent/agent.c
b/agent/agent.c
index
2f25db6
..
e9e1949
100644
(file)
--- a/
agent/agent.c
+++ b/
agent/agent.c
@@
-5031,6
+5031,10
@@
component_io_cb (GSocket *gsocket, GIOCondition condition, gpointer user_data)
}
done:
+
+ if (remove_source)
+ nice_component_remove_socket (component, socket_source->socket);
+
/* If we’re in the middle of a read, don’t emit any signals, or we could cause
* re-entrancy by (e.g.) emitting component-state-changed and having the
* client perform a read. */