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

Jenkins2 asteriskteam at digium.com
Fri Dec 15 12:24:43 CST 2017


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

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 0edabb8..e2b2e1b 100644
--- a/res/res_smdi.c
+++ b/res/res_smdi.c
@@ -1377,6 +1377,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_SELF);
+
 	return AST_MODULE_LOAD_SUCCESS;
 }
 
@@ -1405,9 +1408,6 @@
 	}
 
 	smdi_loaded = 0;
-
-	/* For Optional API. */
-	ast_module_shutdown_ref(AST_MODULE_SELF);
 
 	return 0;
 }

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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2b9da38fbc11ef78ea23dbb2df92b684be7f647c
Gerrit-Change-Number: 7596
Gerrit-PatchSet: 1
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/a6aa5b58/attachment-0001.html>


More information about the asterisk-code-review mailing list