www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 46dc429d736759c83e3c15429b82de683ea07196
parent 7a0c38877cb3f5fc22ebd1b1b75b379f9c7e153e
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 28 Aug 2011 19:58:02 +0000

Handle host lookup failure


Diffstat:
Mchrome/content/zotero/xpcom/proxy.js | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/proxy.js b/chrome/content/zotero/xpcom/proxy.js @@ -870,7 +870,11 @@ Zotero.Proxies.DNS = new function() { var dns = Components.classes["@mozilla.org/network/dns-service;1"] .getService(Components.interfaces.nsIDNSService); myHostName = dns.myHostName; - var record = dns.resolve(myHostName, null); + try { + var record = dns.resolve(myHostName, null); + } catch(e) { + return []; + } // get IPs var ips = [];