summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniko <niko>2012-06-05 21:19:18 (GMT)
committerniko <niko>2012-06-05 21:19:18 (GMT)
commitf39f7ce3a6c30f236ef2eec1051b5ca146c2a8db (patch)
tree67f3202dab87f0fc90733a9479b9bb9b9cbb11ea
parent91afc6043c9959d90fa61ffab4fe72fa6824352f (diff)
downloadsynckolab-f39f7ce3a6c30f236ef2eec1051b5ca146c2a8db.tar.gz
fix for #24937 - endbatch exception catching
-rw-r--r--src/chrome/content/synckolab/calendar.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/chrome/content/synckolab/calendar.js b/src/chrome/content/synckolab/calendar.js
index e4faa89..288d4d7 100644
--- a/src/chrome/content/synckolab/calendar.js
+++ b/src/chrome/content/synckolab/calendar.js
@@ -1070,8 +1070,12 @@ com.synckolab.Calendar = {
},
doneParsing : function () {
- // end batch processing
- this.gConfig.calendar.endBatch();
+ // end batch processing
+ try {
+ this.gConfig.calendar.endBatch();
+ } catch (ex) {
+ // might be possible when someone else called endbatch
+ }
// refresh the calendar
this.gConfig.calendar.refresh();
}