Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index d65ea53d2..116df644f 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -581,10 +581,6 @@ Signaling.Standalone.prototype.connect = function() {
this.signalingConnectionWarning.hideToast()
this.signalingConnectionWarning = null
}
- if (this.signalingConnectionError !== null) {
- this.signalingConnectionError.hideToast()
- this.signalingConnectionError = null
- }
this.reconnectIntervalMs = this.initialReconnectIntervalMs
this.sendHello()
}.bind(this)
@@ -849,12 +845,23 @@ Signaling.Standalone.prototype.helloResponseReceived = function(data) {
return
}
+ if (this.signalingConnectionError === null) {
+ this.signalingConnectionError = showError(t('spreed', 'Failed to establish signaling connection. Retrying …'), {
+ timeout: TOAST_PERMANENT_TIMEOUT,
+ })
+ }
+
// TODO(fancycode): How should this be handled better?
console.error('Could not connect to server', data)
this.reconnect()
return
}
+ if (this.signalingConnectionError !== null) {
+ this.signalingConnectionError.hideToast()
+ this.signalingConnectionError = null
+ }
+
const resumedSession = !!this.resumeId
this.connected = true
if (this._forceReconnect && resumedSession) {