Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
bd55d4fa
Commit
bd55d4fa
authored
Apr 15, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
component: Make detach_source close the socket
parent
6628ed59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
agent/component.c
agent/component.c
+6
-2
No files found.
agent/component.c
View file @
bd55d4fa
...
@@ -495,8 +495,8 @@ component_reattach_all_sockets (Component *component)
...
@@ -495,8 +495,8 @@ component_reattach_all_sockets (Component *component)
* @component: a #Component
* @component: a #Component
* @socket: the socket to detach the source for
* @socket: the socket to detach the source for
*
*
* Detach the #GSource for the single specified @socket.
Leave the socket itself
* Detach the #GSource for the single specified @socket.
It also closes it
*
untouched.
*
and frees it!
*
*
* If the @socket doesn’t exist in this @component, do nothing.
* If the @socket doesn’t exist in this @component, do nothing.
*/
*/
...
@@ -516,7 +516,11 @@ component_detach_socket (Component *component, NiceSocket *nicesock)
...
@@ -516,7 +516,11 @@ component_detach_socket (Component *component, NiceSocket *nicesock)
/* Detach the source. */
/* Detach the source. */
socket_source
=
l
->
data
;
socket_source
=
l
->
data
;
component
->
socket_sources
=
g_slist_delete_link
(
component
->
socket_sources
,
l
);
component
->
socket_sources_age
++
;
socket_source_detach
(
socket_source
);
socket_source_detach
(
socket_source
);
socket_source_free
(
socket_source
);
}
}
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment