sensord: add select() before read a data to check whether it is ready or not
[platform/core/system/sensord.git] / src / shared / channel_event_handler.cpp
index 9045a88..6ca1e25 100644 (file)
@@ -51,7 +51,7 @@ bool channel_event_handler::handle(int fd, event_condition condition)
                return false;
        }
 
-       if (!m_ch->read_sync(msg)) {
+       if (!m_ch->read_sync(msg, false)) {
                m_ch->disconnect();
                delete m_ch;
                m_ch = NULL;