提交 7abd9b3d authored 作者: Mathieu Rene's avatar Mathieu Rene

Don't crash in the odd event you have no modules loaded

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12430 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a9fbc0fe
......@@ -1266,6 +1266,10 @@ SWITCH_DECLARE(void) switch_loadable_module_shutdown(void)
switch_hash_index_t *hi;
void *val;
switch_loadable_module_t *module;
if (!loadable_modules.module_hash) {
return;
}
for (hi = switch_hash_first(NULL, loadable_modules.module_hash); hi; hi = switch_hash_next(hi)) {
switch_hash_this(hi, NULL, NULL, &val);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论