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 @@
/* SOGoToolRemove.m - this file is part of SOGo
*
* Copyright (C) 2010-2017 Inverse inc.
* Copyright (C) 2010-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
@@ -105,7 +105,7 @@ static NSURL *tableURL = nil;
while ((row = [fc fetchAttributes: attrs withZone: NULL]))
[paths addObject: [row objectForKey: @"c_path"]];
}
[cm releaseChannel: fc];
[cm releaseChannel: fc immediately: YES];
}
return paths;
@@ -150,7 +150,7 @@ static NSURL *tableURL = nil;
NSLog (@"Unable to delete the preference record for '%@'", userId);
else if (verbose)
NSLog (@"Removed preference record for '%@'", userId);
[cm releaseChannel: fc];
[cm releaseChannel: fc immediately: YES];
}
}