gboolean ms_create_ready_file(void);
void ms_remove_ready_file(void);
const char *ms_get_command_string(int cmd);
+gboolean ms_module_idx_is_valid(muse_module_h m);
#ifdef __cplusplus
}
g_async_queue_push(ms->diag.msg_aq, (gpointer)dm);
- LOGW("total number of modules = %d ( %s) - %s module %p from pid %d %s client (count %d)",
- len, ms->instance_pid_info, ms_get_command_string(cmd), m, m->pid,
- ms_config_get_host_name(m->idx), connection->instance_count[m->idx]);
+ if (ms_module_idx_is_valid(m))
+ LOGW("total number of modules = %d ( %s) - %s module %p from pid %d %s client (count %d)",
+ len, ms->instance_pid_info, ms_get_command_string(cmd), m, m->pid,
+ ms_config_get_host_name(m->idx), connection->instance_count[m->idx]);
}
int ms_connection_register(muse_module_h m)