diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js
index daa9b95b69..b34aad8631 100644
--- a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js
+++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js
@@ -13,7 +13,7 @@
$scope.storage = storage;
$scope.call_history = angular.element("#call_history").hasClass('active');
$rootScope.chatStatus = angular.element('#wrapper').hasClass('toggled');
-
+ $scope.showReconnectModal = true;
/**
* (explanation) scope in another controller extends rootScope (singleton)
*/
@@ -84,6 +84,7 @@
}
$scope.closeChat();
+ $scope.showReconnectModal = false;
verto.disconnect(disconnectCallback);
verto.hangup();
@@ -170,7 +171,9 @@
backdrop: 'static',
keyboard: false
};
- ws_modalInstance = $scope.openModal('partials/ws_reconnect.html', 'ModalWsReconnectController', options);
+ if ($scope.showReconnectModal) {
+ ws_modalInstance = $scope.openModal('partials/ws_reconnect.html', 'ModalWsReconnectController', options);
+ };
};
function onWSLogin(ev, data) {