LP#1718301: catch it when multiple connection attempts fail
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 21 Sep 2017 01:07:37 +0000 (21:07 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 22 Sep 2017 18:36:23 +0000 (14:36 -0400)
commitd3ed602d412dbc9f9623a88fd8158f04b1538f76
treed6b4ea4d6fad4810d7ed888036a3dc9dc0681182
parentbe597b368e4591c50cd890725ee4a525bd61ef7d
LP#1718301: catch it when multiple connection attempts fail

Lovefield only allows a single connection at a time, and throws
an exception if a second attempt is made.  In the context of a
page app, wrapping the connection attempt in a promise takes
care of it, but for the test suite, the egLoveField service
gets completely reinitialized... but Lovefield itself still
thinks it's in the middle of connecting.

This patch catches the exception and allows the test suite to
pass, without otherwise affecting use in a real browser.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/web/js/ui/default/staff/services/lovefield.js