the GenericCommunicator always tried to destroy the ipcModule. this failed
and resulted in a crash, if no ipcModule was loaded during startup.
void SetUniforms();
private:
- IpcModule m_ipcModule;
- CallBackTable m_callBackTable;
- // TODO: void AddClientWatch(DBusConnection *conn, char* sender);
void RemoveApplicationReference(char* owner);
-
+private:
+ IpcModule m_ipcModule;
+ CallBackTable m_callBackTable;
bool m_running;
-
};
#endif /* _DBUSCOMMUNICATOR_H_ */
}
LOG_DEBUG("GenericCommunicator", "Initializing IpcModule success.");
+ m_running = ILM_TRUE;
+
return ILM_TRUE;
}
LOG_ENTER_FUNCTION;
LOG_INFO("GenericCommunicator","stopping");
- m_ipcModule.destroy();
+ if (m_running)
+ {
+ m_ipcModule.destroy();
+ }
}
void GenericCommunicator::process(int timeout_ms)