Fix bug 1186547 - mReadOnly and mDisabled do not reflect readOnly and disabled properties - missing return. r=MakeMyDay,a=philipp
authorPhilipp Kewisch <mozilla@kewis.ch>
Wed, 22 Jul 2015 21:21:25 +0200
changeset 20383 3638ae3dc946dc1f291f460b322157de31850886
parent 20382 c53da8a616fa0edf206fdb45184216ee6699c331
child 20384 c5db5a77faed4aff52e9fb75c63d1145bfccb924
push id1483
push usermozilla@kewis.ch
push dateWed, 22 Jul 2015 19:21:40 +0000
treeherdercomm-aurora@3638ae3dc946 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMakeMyDay, philipp
bugs1186547
Fix bug 1186547 - mReadOnly and mDisabled do not reflect readOnly and disabled properties - missing return. r=MakeMyDay,a=philipp
calendar/providers/caldav/calDavCalendar.js
--- a/calendar/providers/caldav/calDavCalendar.js
+++ b/calendar/providers/caldav/calDavCalendar.js
@@ -1880,16 +1880,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) => {