<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7598">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_smdi: Fix shutdown ref.<br><br>When adding shutdown refs for OPTIONAL_API components I accidentally<br>added it to the unload_module function in res_smdi.  Move it to<br>load_module.<br><br>Change-Id: I2b9da38fbc11ef78ea23dbb2df92b684be7f647c<br>---<br>M res/res_smdi.c<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/98/7598/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_smdi.c b/res/res_smdi.c<br>index 7b4c42b..a20c836 100644<br>--- a/res/res_smdi.c<br>+++ b/res/res_smdi.c<br>@@ -1379,6 +1379,9 @@<br>   ast_custom_function_register(&smdi_msg_retrieve_function);<br>        ast_custom_function_register(&smdi_msg_function);<br> <br>+     /* For Optional API. */<br>+      ast_module_shutdown_ref(AST_MODULE_SELF);<br>+<br>  return AST_MODULE_LOAD_SUCCESS;<br> }<br> <br>@@ -1407,9 +1410,6 @@<br>         }<br> <br>  smdi_loaded = 0;<br>-<br>-  /* For Optional API. */<br>-      ast_module_shutdown_ref(ast_module_info->self);<br> <br>         return 0;<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7598">change 7598</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7598"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2b9da38fbc11ef78ea23dbb2df92b684be7f647c </div>
<div style="display:none"> Gerrit-Change-Number: 7598 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>