1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 19:02:20 -05:00

fix imap timeout (again) to continue with login callback

This commit is contained in:
Tankred Hase 2014-02-02 16:10:51 +01:00
parent bb76252db7
commit d37b9ca5e3

View File

@ -120,14 +120,7 @@ define(function(require) {
console.log('IMAP error.', err); console.log('IMAP error.', err);
console.log('IMAP reconnecting...'); console.log('IMAP reconnecting...');
// re-init client modules on error // re-init client modules on error
self.onConnect(function(err) { self.onConnect(callback);
if (err) {
console.error('IMAP reconnect failed!', err);
return;
}
console.log('IMAP reconnect successful.');
});
}; };
// connect to clients // connect to clients