sensord: remove excessive sensor log when socket buffer is full 47/142347/4
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 3 Aug 2017 12:05:11 +0000 (21:05 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Thu, 3 Aug 2017 13:08:20 +0000 (22:08 +0900)
Change-Id: I70930ff13ac406a6c8a5418f3404cbfb83e3c32b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/channel.cpp

index e407aee..446c881 100644 (file)
@@ -155,9 +155,8 @@ bool channel::send(message *msg)
 {
        retv_if(!m_loop, false);
 
-       /* TODO: check buffer size(is there any linux api for this?) */
        int cur_buffer_size = m_socket->get_current_buffer_size();
-       retvm_if(cur_buffer_size > SYSTEMD_SOCK_BUF_SIZE, false, "Failed to send data");
+       retv_if(cur_buffer_size > SYSTEMD_SOCK_BUF_SIZE, false);
 
        send_event_handler *handler = new(std::nothrow) send_event_handler(this, msg);
        retvm_if(!handler, false, "Failed to allocate memory");