fix(core): avoid pooling channels with tools (fixes #4684)

This commit is contained in:
Ludovic Marcotte
2020-07-10 10:22:48 -04:00
parent a91a00e33c
commit cecf157dca
13 changed files with 42 additions and 32 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
/* SOGoToolBackup.m - this file is part of SOGo
*
* Copyright (C) 2009-2016 Inverse inc.
* Copyright (C) 2009-2020 Inverse inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -168,7 +168,7 @@
if (user)
[allSqlUsers addObject: user];
}
[cm releaseChannel: fc];
[cm releaseChannel: fc immediately: YES];
users = allSqlUsers;
max = [users count];
@@ -270,7 +270,7 @@
row = [fc fetchAttributes: attrs withZone: NULL];
displayName = [row objectForKey: @"c_foldername"];
[fc cancelFetch];
[cm releaseChannel: fc];
[cm releaseChannel: fc immediately: YES];
}
if (!displayName)