Rectifyng this poniter deletion from member function
[platform/core/system/sensord.git] / src / shared / channel_event_handler.cpp
index cc8a2bb..8a6b64b 100644 (file)
@@ -46,13 +46,11 @@ bool channel_event_handler::handle(int fd, event_condition condition)
 
        if (condition & (EVENT_HUP)) {
                m_ch->disconnect();
-               m_ch = NULL;
                return false;
        }
 
        if (!m_ch->read_sync(msg, false)) {
                m_ch->disconnect();
-               m_ch = NULL;
                return false;
        }