Fixed TLS build on Windows GCC/MVSC

Cleanup TLS compile
This commit is contained in:
BenDr0id 2018-03-01 17:44:15 +01:00
parent bc110ef162
commit 972f542901
13 changed files with 66 additions and 51 deletions

View file

@ -282,7 +282,7 @@ void Client::onRead(net_t *net, size_t size, char *buf)
{
auto client = getClient(net->data);
if (size < 0) {
if (size == 0) {
if (size != UV_EOF && !client->m_quiet) {
LOG_ERR("[%s:%u] read error: \"%s\"", client->m_url.host(), client->m_url.port(), uv_strerror((int) size));
}