Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
8848d74e
Commit
8848d74e
authored
May 09, 2018
by
Philipp Schafft
🦁
Browse files
Fix: Correctly detect error condition
parent
4279a6ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/listensocket.c
View file @
8848d74e
...
...
@@ -358,9 +358,10 @@ int listensocket_refsock(listensocket_t *self)
if
(
self
->
sock
==
SOCK_ERROR
)
return
-
1
;
if
(
sock_listen
(
self
->
sock
,
ICECAST_LISTEN_QUEUE
)
==
SOCK_ERROR
)
{
if
(
sock_listen
(
self
->
sock
,
ICECAST_LISTEN_QUEUE
)
==
0
)
{
sock_close
(
self
->
sock
);
self
->
sock
=
SOCK_ERROR
;
ICECAST_LOG_ERROR
(
"Can not listen on socket: %s port %i"
,
self
->
listener
->
bind_address
?
self
->
listener
->
bind_address
:
"<ANY>"
,
self
->
listener
->
port
);
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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