mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 15:45:26 +00:00
Update SOGoActiveSyncDispatcher.m
Add local memory pool so as to restrict memory consumption while waiting in the ping cycle. Consumption can otherwise grow quite large while if the SOGoMaximumPingInterval and SOGoMaximumSyncInterval have been increased to allow for push ActiveSync.
This commit is contained in:
committed by
Ludovic Marcotte
parent
d1c3327d47
commit
3a66e54bd0
@@ -1999,7 +1999,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
NSMutableString *s;
|
||||
id collection;
|
||||
NSData *d;
|
||||
|
||||
NSAutoreleasePool *pool;
|
||||
|
||||
int i, j, heartbeatInterval, defaultInterval, internalInterval, status;
|
||||
|
||||
@@ -2061,6 +2061,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// We enter our loop detection change
|
||||
for (i = 0; i < (heartbeatInterval/internalInterval); i++)
|
||||
{
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
for (j = 0; j < [allFoldersID count]; j++)
|
||||
{
|
||||
collectionId = [allFoldersID objectAtIndex: j];
|
||||
@@ -2085,7 +2086,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
[foldersWithChanges addObject: collectionId];
|
||||
}
|
||||
}
|
||||
|
||||
DESTROY(pool);
|
||||
|
||||
if ([foldersWithChanges count])
|
||||
{
|
||||
[self logWithFormat: @"Change detected using Ping, we let the EAS client know to send a Sync."];
|
||||
|
||||
Reference in New Issue
Block a user