diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 0e5d7c5d04..fe80c0d4b0 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -3760,12 +3760,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;