diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-11-06 09:41:29 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-06 09:41:29 -0600 |
commit | 0eee42626a689c7425cd21b63144943e6ada033e (patch) | |
tree | d197cd6b4e7dd50f9081931e936a06dcc59c8443 /res/res_pktccops.c | |
parent | 19c9200429f987e8bbbb644c1f233c61f27803d1 (diff) | |
parent | 73a5e9f0e9600bb656c31c9a091371b495b1fb03 (diff) |
Merge "Prevent unload of modules which implement an Optional API." into 13
Diffstat (limited to 'res/res_pktccops.c')
-rw-r--r-- | res/res_pktccops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_pktccops.c b/res/res_pktccops.c index 837e0f5e1..037e533d3 100644 --- a/res/res_pktccops.c +++ b/res/res_pktccops.c @@ -1474,6 +1474,10 @@ static int load_module(void) } ast_cli_register_multiple(cli_pktccops, sizeof(cli_pktccops) / sizeof(struct ast_cli_entry)); restart_pktc_thread(); + + /* For Optional API. */ + ast_module_shutdown_ref(ast_module_info->self); + return 0; } |