A lot of updates

This commit is contained in:
WolverinDEV
2020-02-01 14:32:16 +01:00
parent fe05c63882
commit 543e6b1abc
44 changed files with 714 additions and 392 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ void WebClient::handleMessageWrite(int fd, short, void *) {
debugMessage(this->getServerId(), "[{}] Failed to write message (length {}, errno {}, message {}) Disconnecting client.", CLIENT_STR_LOG_PREFIX, written, errno, strerror(errno));
}
this->closeConnection(system_clock::now()); /* close connection in a new thread */
this->close_connection(system_clock::now()); /* close connection in a new thread */
return;
}
@@ -76,7 +76,7 @@ void WebClient::handleMessageRead(int fd, short, void *) {
if(this->readEvent)
event_del_noblock(this->readEvent);
}
self_lock->closeConnection(system_clock::now()); /* direct close, but from another thread */
self_lock->close_connection(system_clock::now()); /* direct close, but from another thread */
}
return;
}