mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-21 22:54:53 +08:00
Do not stop trying to reconnect to server if offline (private networks and on same machine might still work)
This commit is contained in:
@@ -69,7 +69,7 @@ class ServerConnection {
|
|||||||
|
|
||||||
_connect() {
|
_connect() {
|
||||||
clearTimeout(this._reconnectTimer);
|
clearTimeout(this._reconnectTimer);
|
||||||
if (this._isConnected() || this._isConnecting() || this._isOffline()) return;
|
if (this._isConnected() || this._isConnecting()) return;
|
||||||
if (this._isReconnect) {
|
if (this._isReconnect) {
|
||||||
Events.fire('notify-user', {
|
Events.fire('notify-user', {
|
||||||
message: Localization.getTranslation("notifications.connecting"),
|
message: Localization.getTranslation("notifications.connecting"),
|
||||||
|
|||||||
Reference in New Issue
Block a user