LP#1718301: catch it when multiple connection attempts fail user/gmcharlt/lp1718301_lf_no_multi_connect
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 21 Sep 2017 01:07:37 +0000 (21:07 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 21 Sep 2017 01:13:03 +0000 (21:13 -0400)
commit3aeb68704baa2f935d3b6538c4b4968b39c91ee2
tree37269e19b26532865d446bc9f228d7e321b20a67
parent41dc920959cf4f793e993839b3108b5ae257773c
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>
Open-ILS/web/js/ui/default/staff/services/lovefield.js