|
@@ -15,6 +15,7 @@
|
|
|
#endif //RVC_OS_WIN
|
|
|
|
|
|
#include <winpr/thread.h>
|
|
|
+#include <RVCEventCode.h>
|
|
|
|
|
|
SpModule::SpModule( sp_mod_t *mod, sp_cfg_shell_module_t *cfg_mod )
|
|
|
: m_arrEntity(NULL)
|
|
@@ -97,8 +98,12 @@ ErrorCodeEnum SpModule::Init( const char *url )
|
|
|
//sp_dbg_debug("to create iom instance...");
|
|
|
rc = sp_iom_create(url, m_mod->cfg->idx, &m_iom);
|
|
|
if (rc != 0) {
|
|
|
- DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM)("creat iom instance failed!");
|
|
|
- return Error_Param;
|
|
|
+ Sleep(500);
|
|
|
+ if (0 != (rc = sp_iom_create(url, m_mod->cfg->idx, &m_iom)))
|
|
|
+ {
|
|
|
+ DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM).setResultCode(RTAERR_SPHOST_IOM_FAILED)("creat iom instance failed!");
|
|
|
+ return Error_Param;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
rc = sp_log_client_create(NULL, m_iom, &m_anonymous_log);
|