Fix
bug 1186547 - mReadOnly and mDisabled do not reflect readOnly and disabled properties - missing return. r=MakeMyDay,a=philipp
--- a/calendar/providers/caldav/calDavCalendar.js
+++ b/calendar/providers/caldav/calDavCalendar.js
@@ -1874,16 +1874,17 @@ calDavCalendar.prototype = {
if (resourceType == kDavResourceTypeCalendar) {
// If this calendar was previously offline we want to recover
if (thisCalendar.getProperty("disabled")) {
thisCalendar.setProperty("disabled", false);
thisCalendar.readOnly = false;
}
thisCalendar.setCalHomeSet(true);
thisCalendar.checkServerCaps(aChangeLogListener);
+ return;
}
// If we get here something must have gone wrong. Abort with a
// general error to avoid an endless loop.
thisCalendar.completeCheckServerInfo(aChangeLogListener, Components.results.NS_ERROR_FAILURE);
};
this.sendHttpRequest(this.makeUri(), queryXml, MIME_TEXT_XML, null, (channel) => {