<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10350">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">loader: Fix result of module reload error.<br><br>When a module reload fails we never set AST_MODULE_RELOAD_ERROR.  This<br>caused reload failures to incorrectly report 'No module found'.<br><br>Change-Id: I5f3953e0f7d135e53ec797f24c97ee3f73f232e7<br>---<br>M main/loader.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/50/10350/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/loader.c b/main/loader.c</span><br><span>index c495d76..f9271af 100644</span><br><span>--- a/main/loader.c</span><br><span>+++ b/main/loader.c</span><br><span>@@ -1010,6 +1010,8 @@</span><br><span>          if (!name || !strcasecmp(name, reload_classes[i].name)) {</span><br><span>                    if (reload_classes[i].reload_fn() == AST_MODULE_LOAD_SUCCESS) {</span><br><span>                              res = AST_MODULE_RELOAD_SUCCESS;</span><br><span style="color: hsl(120, 100%, 40%);">+                      } else if (res == AST_MODULE_RELOAD_NOT_FOUND) {</span><br><span style="color: hsl(120, 100%, 40%);">+                              res = AST_MODULE_RELOAD_ERROR;</span><br><span>                       }</span><br><span>            }</span><br><span>    }</span><br><span>@@ -1051,6 +1053,8 @@</span><br><span>            ast_verb(3, "Reloading module '%s' (%s)\n", cur->resource, info->description);</span><br><span>               if (info->reload() == AST_MODULE_LOAD_SUCCESS) {</span><br><span>                  res = AST_MODULE_RELOAD_SUCCESS;</span><br><span style="color: hsl(120, 100%, 40%);">+              } else if (res == AST_MODULE_RELOAD_NOT_FOUND) {</span><br><span style="color: hsl(120, 100%, 40%);">+                      res = AST_MODULE_RELOAD_ERROR;</span><br><span>               }</span><br><span>            if (name) {</span><br><span>                  break;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10350">change 10350</a>. To unsubscribe, or for help writing mail filters, 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/10350"/><meta itemprop="name" content="View Change"/></div></div>

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