mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-29 01:51:32 +00:00
FS-7046: fix some unreachable code warnings
This commit is contained in:
parent
aaeea2df86
commit
d600a15681
@ -3762,12 +3762,10 @@ static ws_socket_t prepare_socket(int ip, uint16_t port)
|
||||
|
||||
if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
|
||||
die("Bind Error!\n");
|
||||
return ws_sock_invalid;
|
||||
}
|
||||
|
||||
if (listen(sock, MAXPENDING) < 0) {
|
||||
die("Listen error\n");
|
||||
return ws_sock_invalid;
|
||||
}
|
||||
|
||||
return sock;
|
||||
|
Loading…
x
Reference in New Issue
Block a user