diff --git a/lib/socketserver/GwSocketServer.cpp b/lib/socketserver/GwSocketServer.cpp index bcefda9..d103a6a 100644 --- a/lib/socketserver/GwSocketServer.cpp +++ b/lib/socketserver/GwSocketServer.cpp @@ -248,13 +248,9 @@ void GwSocketServer::sendToClients(const char *buf,int source){ gwClientPtr client = clients[i]; if (! client->hasClient()) continue; if ( client->client->connected() ) { - bool rt=client->enqueue((uint8_t*)buf,len); - if (!rt){ - LOG_DEBUG(GwLog::DEBUG,"overflow in send to %s",client->remoteIp.c_str()); + client->enqueue((uint8_t*)buf,len); } - } - } } int GwSocketServer::numClients(){ diff --git a/src/main.cpp b/src/main.cpp index 91eb142..c8e3736 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1001,6 +1001,6 @@ void loop() { monitor.setTime(15); average.add(monitor.getMax()); if (logger.isActive(GwLog::LOG)){ - monitor.writeLog(10); + monitor.writeLog(6); } }