1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 15:58:49 -05:00

Merge branch 'master' into dev/attachments-ui

This commit is contained in:
Tankred Hase 2014-02-05 18:04:39 +01:00
commit cb69514197
2 changed files with 16 additions and 1 deletions

View File

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

View File

@ -19,6 +19,9 @@ define(function(require) {
// attach global error handler
errorUtil.attachHandler($scope);
// app controller is initialized
appController._initialized = true;
emailDao = appController._emailDao;
outboxBo = appController._outboxBo;