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
a41f0d63
Commit
a41f0d63
authored
Sep 20, 2011
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the agent's main main-context for the tcp-bsd callback as it's for sending
parent
c2a508bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
agent/agent.c
agent/agent.c
+4
-2
No files found.
agent/agent.c
View file @
a41f0d63
...
@@ -1392,7 +1392,8 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent,
...
@@ -1392,7 +1392,8 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent,
agent
->
proxy_ip
!=
NULL
&&
agent
->
proxy_ip
!=
NULL
&&
nice_address_set_from_string
(
&
proxy_server
,
agent
->
proxy_ip
))
{
nice_address_set_from_string
(
&
proxy_server
,
agent
->
proxy_ip
))
{
nice_address_set_port
(
&
proxy_server
,
agent
->
proxy_port
);
nice_address_set_port
(
&
proxy_server
,
agent
->
proxy_port
);
socket
=
nice_tcp_bsd_socket_new
(
agent
,
component
->
ctx
,
&
proxy_server
);
socket
=
nice_tcp_bsd_socket_new
(
agent
,
agent
->
main_context
,
&
proxy_server
);
if
(
socket
)
{
if
(
socket
)
{
_priv_set_socket_tos
(
agent
,
socket
,
stream
->
tos
);
_priv_set_socket_tos
(
agent
,
socket
,
stream
->
tos
);
...
@@ -1410,7 +1411,8 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent,
...
@@ -1410,7 +1411,8 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent,
}
}
if
(
socket
==
NULL
)
{
if
(
socket
==
NULL
)
{
socket
=
nice_tcp_bsd_socket_new
(
agent
,
component
->
ctx
,
&
turn
->
server
);
socket
=
nice_tcp_bsd_socket_new
(
agent
,
agent
->
main_context
,
&
turn
->
server
);
_priv_set_socket_tos
(
agent
,
socket
,
stream
->
tos
);
_priv_set_socket_tos
(
agent
,
socket
,
stream
->
tos
);
}
}
if
(
turn
->
type
==
NICE_RELAY_TYPE_TURN_TLS
&&
if
(
turn
->
type
==
NICE_RELAY_TYPE_TURN_TLS
&&
...
...
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