<p>Alexei Gradinari has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/5853">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_voicemail: avoid race on IMAP logout<br><br>Need to lock IMAP vm_state to avoid race condition.<br><br>ASTERISK-24052 #close<br><br>Change-Id: Id33ef3363cc7eeeb3e5ebb37b8f5566c711d9486<br>---<br>M apps/app_voicemail.c<br>1 file changed, 3 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/53/5853/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c<br>index 0c0e2ba..4e42b1c 100644<br>--- a/apps/app_voicemail.c<br>+++ b/apps/app_voicemail.c<br>@@ -13057,7 +13057,10 @@<br>                 return;<br>       }<br> <br>+ ast_mutex_lock(&vms->lock);<br>    vms->mailstream = mail_close(vms->mailstream);<br>+ ast_mutex_unlock(&vms->lock);<br>+<br>       vmstate_delete(vms);<br> }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/5853">change 5853</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/5853"/><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: Id33ef3363cc7eeeb3e5ebb37b8f5566c711d9486 </div>
<div style="display:none"> Gerrit-Change-Number: 5853 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexei Gradinari <alex2grad@gmail.com> </div>