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:
parent
bb76252db7
commit
d37b9ca5e3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user