[Asterisk-code-review] res smdi: Fix shutdown ref. (asterisk[13])

Jenkins2 asteriskteam at digium.com
Fri Dec 15 12:31:47 CST 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/7598 )

Change subject: res_smdi: Fix shutdown ref.
......................................................................

res_smdi: Fix shutdown ref.

When adding shutdown refs for OPTIONAL_API components I accidentally
added it to the unload_module function in res_smdi.  Move it to
load_module.

Change-Id: I2b9da38fbc11ef78ea23dbb2df92b684be7f647c
---
M res/res_smdi.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/res/res_smdi.c b/res/res_smdi.c
index 7b4c42b..49d10cc 100644
--- a/res/res_smdi.c
+++ b/res/res_smdi.c
@@ -1379,6 +1379,9 @@
 	ast_custom_function_register(&smdi_msg_retrieve_function);
 	ast_custom_function_register(&smdi_msg_function);
 
+	/* For Optional API. */
+	ast_module_shutdown_ref(ast_module_info->self);
+
 	return AST_MODULE_LOAD_SUCCESS;
 }
 
@@ -1407,9 +1410,6 @@
 	}
 
 	smdi_loaded = 0;
-
-	/* For Optional API. */
-	ast_module_shutdown_ref(ast_module_info->self);
 
 	return 0;
 }

-- 
To view, visit https://gerrit.asterisk.org/7598
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I2b9da38fbc11ef78ea23dbb2df92b684be7f647c
Gerrit-Change-Number: 7598
Gerrit-PatchSet: 2
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171215/ad456952/attachment-0001.html>


More information about the asterisk-code-review mailing list