Commit 1cfba7d9 authored by rswindell's avatar rswindell
Browse files

Error when closing a socket is really just a warning.

parent b0923caa
......@@ -243,7 +243,7 @@ int mail_close_socket(SOCKET sock)
sockets--;
if(result!=0) {
if(ERROR_VALUE!=ENOTSOCK)
lprintf(LOG_ERR,"%04d !ERROR %d closing socket",sock, ERROR_VALUE);
lprintf(LOG_WARNING,"%04d !ERROR %d closing socket",sock, ERROR_VALUE);
}
#if 0 /*def _DEBUG */
else
......
......@@ -230,7 +230,7 @@ int close_socket(SOCKET sock)
if(startup!=NULL && startup->socket_open!=NULL)
startup->socket_open(startup->cbdata,FALSE);
if(result!=0 && ERROR_VALUE!=ENOTSOCK)
lprintf(LOG_ERR,"!ERROR %d closing socket %d",ERROR_VALUE,sock);
lprintf(LOG_WARNING,"!ERROR %d closing socket %d",ERROR_VALUE,sock);
return(result);
}
......@@ -3512,7 +3512,7 @@ void sbbs_t::hangup(void)
{
if(online) {
lprintf(LOG_DEBUG,"Node %d disconnecting client", cfg.node_num);
online=FALSE; // moved from the bottom of this fucntion on Jan-25-2009
online=FALSE; // moved from the bottom of this function on Jan-25-2009
}
if(client_socket_dup!=INVALID_SOCKET && client_socket_dup!=client_socket)
closesocket(client_socket_dup);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment