From 1ee015317f3049d8d173801e5eede7b7e6062af8 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 11 Dec 2013 14:50:48 -0500 Subject: [PATCH] Don't restart in connector mode on Zotero.init() failure I broke this in a723c8599949a64f6af10c81a8a652feeeaee57c --- components/zotero-service.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/components/zotero-service.js b/components/zotero-service.js index 433cad5b9..6a5fb6170 100644 --- a/components/zotero-service.js +++ b/components/zotero-service.js @@ -295,11 +295,15 @@ function ZoteroService() { try { zContext.Zotero.init(zInitOptions); } catch(e) { - // if Zotero should start as a connector, reload it - zContext.Zotero.shutdown().then(function() { - makeZoteroContext(true); - zContext.Zotero.init(zInitOptions); - }).done(); + if(e === "ZOTERO_SHOULD_START_AS_CONNECTOR") { + // if Zotero should start as a connector, reload it + zContext.Zotero.shutdown().then(function() { + makeZoteroContext(true); + zContext.Zotero.init(zInitOptions); + }).done(); + } else { + throw e; + } } } isFirstLoadThisSession = false; // no longer first load