nopause for flag fetch

master
Vitaliy Filippov 2016-10-09 18:56:04 +03:00
parent 6abd931751
commit d1c29d01a8
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ ImapManager.prototype.onMessage = function*(fetchState, msg, seqnum, processor)
fetchState.pending.push([ msgrow, attrs ]); fetchState.pending.push([ msgrow, attrs ]);
fetchState.parsed++; fetchState.parsed++;
if (!fetchState.paused && fetchState.parsed >= 100) if (!fetchState.paused && fetchState.parsed >= 100 && !fetchState.nopause)
{ {
// ГОРШОЧЕК, НЕ ВАРИ!!! И так уже кучу сообщений прочитал из сокета, хорош! // ГОРШОЧЕК, НЕ ВАРИ!!! И так уже кучу сообщений прочитал из сокета, хорош!
fetchState.srv._parser._ignoreReadable = true; fetchState.srv._parser._ignoreReadable = true;

View File

@ -245,7 +245,7 @@ Syncer.prototype.fullResync = function*(srv, boxId, maxUid, missing, total)
yield* this.imap.runFetch( yield* this.imap.runFetch(
srv, '1:'+maxUid, {}, srv, '1:'+maxUid, {},
(messages, state) => this.queueFlags(messages, boxId, state), (messages, state) => this.queueFlags(messages, boxId, state),
{ flags: flags, updateFlags: updateFlags, missing: missing||[], total: total } { flags: flags, updateFlags: updateFlags, missing: missing||[], total: total, nopause: true }
); );
process.stderr.write('\n'); process.stderr.write('\n');
this.events.emit('sync', { state: 'finish-box' }); this.events.emit('sync', { state: 'finish-box' });