From 4cf5e8197148dfa10ac8ea9f18ad4de6212ab107 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Thu, 23 Jul 2020 10:48:59 +0200 Subject: [PATCH] removed usleep --- slsSupportLib/src/DataSocket.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/slsSupportLib/src/DataSocket.cpp b/slsSupportLib/src/DataSocket.cpp index 311d8c7df..49750cba9 100644 --- a/slsSupportLib/src/DataSocket.cpp +++ b/slsSupportLib/src/DataSocket.cpp @@ -68,8 +68,6 @@ int DataSocket::Send(const void *buffer, size_t size) { int data_size = static_cast(size); // signed size while (bytes_sent < (data_size)) { auto this_send = ::write(getSocketId(), buffer, size); - usleep(0); // TODO: fix for rhel7 (not fedora) sending 0 chars for mess - // (rx_start with fwrite 1 and fpath /) if (this_send <= 0) break; bytes_sent += this_send;