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
1c4aeec3
Commit
1c4aeec3
authored
Apr 02, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tcp-bsd: Don't clear error that hasn't been set
parent
3a66b678
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
socket/tcp-bsd.c
socket/tcp-bsd.c
+2
-3
No files found.
socket/tcp-bsd.c
View file @
1c4aeec3
...
@@ -393,8 +393,7 @@ socket_send_more (
...
@@ -393,8 +393,7 @@ socket_send_more (
}
}
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
if
(
gerr
!=
NULL
&&
if
(
g_error_matches
(
gerr
,
G_IO_ERROR
,
G_IO_ERROR_WOULD_BLOCK
))
{
g_error_matches
(
gerr
,
G_IO_ERROR
,
G_IO_ERROR_WOULD_BLOCK
))
{
GOutputVector
local_buf
=
{
tbs
->
buf
,
tbs
->
length
};
GOutputVector
local_buf
=
{
tbs
->
buf
,
tbs
->
length
};
NiceOutputMessage
local_message
=
{
&
local_buf
,
1
};
NiceOutputMessage
local_message
=
{
&
local_buf
,
1
};
...
@@ -403,7 +402,7 @@ socket_send_more (
...
@@ -403,7 +402,7 @@ socket_send_more (
g_error_free
(
gerr
);
g_error_free
(
gerr
);
break
;
break
;
}
}
g_
error_free
(
gerr
);
g_
clear_error
(
&
gerr
);
}
else
if
(
ret
<
(
int
)
tbs
->
length
)
{
}
else
if
(
ret
<
(
int
)
tbs
->
length
)
{
GOutputVector
local_buf
=
{
tbs
->
buf
+
ret
,
tbs
->
length
-
ret
};
GOutputVector
local_buf
=
{
tbs
->
buf
+
ret
,
tbs
->
length
-
ret
};
NiceOutputMessage
local_message
=
{
&
local_buf
,
1
};
NiceOutputMessage
local_message
=
{
&
local_buf
,
1
};
...
...
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