mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
scgi updates
This commit is contained in:
@@ -198,7 +198,7 @@ SCGI_DECLARE(scgi_status_t) scgi_bind(const char *host, scgi_port_t port, scgi_s
|
||||
SCGI_DECLARE(scgi_status_t) scgi_accept(scgi_socket_t server_sock, scgi_socket_t *client_sock_p, struct sockaddr_in *echoClntAddr);
|
||||
|
||||
#ifndef WIN32
|
||||
#define closesocket(x) shutdown(x, 2); close(x)
|
||||
#define closesocket(x) close(x)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -384,10 +384,6 @@ SCGI_DECLARE(scgi_status_t) scgi_disconnect(scgi_handle_t *handle)
|
||||
return SCGI_FAIL;
|
||||
}
|
||||
|
||||
if (!handle->sock) {
|
||||
abort();
|
||||
}
|
||||
|
||||
if (handle->sock != SCGI_SOCK_INVALID) {
|
||||
closesocket(handle->sock);
|
||||
handle->sock = SCGI_SOCK_INVALID;
|
||||
|
||||
Reference in New Issue
Block a user