summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
Diffstat (limited to 'agent')
-rw-r--r--agent/agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/agent.c b/agent/agent.c
index 6b20ddf..0a99185 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -1851,7 +1851,7 @@ _tcp_sock_is_writable (NiceSocket *sock, gpointer user_data)
/* Don't signal writable if the socket that has become writable is not
* the selected pair */
if (component->selected_pair.local == NULL ||
- component->selected_pair.local->sockptr != sock) {
+ !nice_socket_is_base_of (sock, component->selected_pair.local->sockptr)) {
agent_unlock ();
return;
}