~ubuntu-branches/ubuntu/saucy/geary/saucy-updates

« back to all changes in this revision

Viewing changes to src/engine/imap-engine/imap-engine-email-prefetcher.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-10-10 17:40:37 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20131010174037-5p5o4dlsoewek2kg
Tags: 0.4.0-0ubuntu1
New stable version

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    private unowned ImapEngine.GenericFolder folder;
27
27
    private int start_delay_sec;
28
28
    private Nonblocking.Mutex mutex = new Nonblocking.Mutex();
29
 
    private Gee.TreeSet<Geary.Email> prefetch_emails = new Collection.FixedTreeSet<Geary.Email>(
 
29
    private Gee.TreeSet<Geary.Email> prefetch_emails = new Gee.TreeSet<Geary.Email>(
30
30
        Email.compare_date_received_descending);
31
31
    private uint schedule_id = 0;
32
32
    private Cancellable cancellable = new Cancellable();
169
169
    private async void do_prefetch_batch_async() throws Error {
170
170
        // snarf up all requested Emails for this round
171
171
        Gee.TreeSet<Geary.Email> emails = prefetch_emails;
172
 
        prefetch_emails = new Collection.FixedTreeSet<Geary.Email>(Email.compare_date_received_descending);
 
172
        prefetch_emails = new Gee.TreeSet<Geary.Email>(Email.compare_date_received_descending);
173
173
        
174
174
        if (emails.size == 0)
175
175
            return;