projects
/
platform
/
core
/
system
/
sensord.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/src/shared/channel_event_handler.cpp
b/src/shared/channel_event_handler.cpp
index
9045a88
..
6ca1e25
100644
(file)
--- a/
src/shared/channel_event_handler.cpp
+++ b/
src/shared/channel_event_handler.cpp
@@
-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;