Compare commits
1 Commits
8f3b313776
...
bcd70b7a2f
Author | SHA1 | Date | |
---|---|---|---|
|
bcd70b7a2f |
@ -62,7 +62,7 @@ void connection_close(connection_t *cn)
|
|||||||
{
|
{
|
||||||
mylog(LOG_DEBUG, "Connection close asked. FD:%d (status: %d)",
|
mylog(LOG_DEBUG, "Connection close asked. FD:%d (status: %d)",
|
||||||
(long)cn->handle, cn->connected);
|
(long)cn->handle, cn->connected);
|
||||||
if (cn->connected != CONN_DISCONN && cn->connected != CONN_ERROR) {
|
if (cn->connected != CONN_DISCONN) {
|
||||||
cn->connected = CONN_DISCONN;
|
cn->connected = CONN_DISCONN;
|
||||||
if (close(cn->handle) == -1)
|
if (close(cn->handle) == -1)
|
||||||
mylog(LOG_WARN, "Error on socket close: %s",
|
mylog(LOG_WARN, "Error on socket close: %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user