diff options
Diffstat (limited to 'main/loader.c')
-rw-r--r-- | main/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/loader.c b/main/loader.c index 268cc80c8..ecd01e16c 100644 --- a/main/loader.c +++ b/main/loader.c @@ -489,7 +489,7 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode f if (!(mod = find_resource(resource_name, 0))) { AST_LIST_UNLOCK(&module_list); ast_log(LOG_WARNING, "Unload failed, '%s' could not be found\n", resource_name); - return 0; + return -1; } if (!(mod->flags.running || mod->flags.declined)) |