|
@@ -387,7 +387,8 @@ class ConferenceConnector {
|
387
|
387
|
// the app. Both the errors above are unrecoverable from the library
|
388
|
388
|
// perspective.
|
389
|
389
|
room.leave().then(() => connection.disconnect());
|
390
|
|
- APP.UI.showPageReloadOverlay(err);
|
|
390
|
+ APP.UI.showPageReloadOverlay(
|
|
391
|
+ false /* not a network type of failure */, err);
|
391
|
392
|
break;
|
392
|
393
|
|
393
|
394
|
case ConferenceErrors.CONFERENCE_MAX_USERS:
|
|
@@ -545,12 +546,16 @@ export default {
|
545
|
546
|
*/
|
546
|
547
|
_bindConnectionFailedHandler (connection) {
|
547
|
548
|
const handler = function (error, errMsg) {
|
548
|
|
- if (ConnectionErrors.OTHER_ERROR === error) {
|
|
549
|
+ if (ConnectionErrors.OTHER_ERROR === error ||
|
|
550
|
+ ConnectionErrors.SERVER_ERROR === error) {
|
549
|
551
|
// - item-not-found
|
550
|
552
|
// - connection dropped(closed by Strophe unexpectedly
|
551
|
553
|
// possible due too many transport errors)
|
|
554
|
+ const isNetworkFailure
|
|
555
|
+ = error !== ConnectionErrors.SERVER_ERROR;
|
552
|
556
|
logger.error("XMPP connection error: " + errMsg);
|
553
|
557
|
APP.UI.showPageReloadOverlay(
|
|
558
|
+ isNetworkFailure,
|
554
|
559
|
"xmpp-conn-dropped:" + errMsg);
|
555
|
560
|
connection.removeEventListener(
|
556
|
561
|
ConnectionEvents.CONNECTION_FAILED, handler);
|