mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 06:18:50 +00:00
Merge pull request #202 from RaphWeyman/master
Update SOGoActiveSyncDispatcher.m - local memory pool for ping cycle.
This commit is contained in:
@@ -2001,7 +2001,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;
|
||||
|
||||
@@ -2063,6 +2063,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];
|
||||
@@ -2087,7 +2088,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