upas/fs: release mailbox syncing lock after encountering error

This commit is contained in:
cinap_lenrek 2019-03-23 05:47:17 +01:00
parent 151039caf0
commit 41d4cecf6d

View file

@ -76,8 +76,10 @@ syncmbox(Mailbox *mb, int doplumb)
a = mb->root->subname;
if(rdidxfile(mb) == -2)
wridxfile(mb);
if(s = mb->sync(mb))
if(s = mb->sync(mb)){
mb->syncing = 0;
return s;
}
n = 0;
d = 0;
y = 0;