Don't automatically connect to realys in init()
This commit is contained in:
parent
58fed7a53b
commit
dbb7f67154
@ -148,9 +148,14 @@ export async function init(): Promise<void> {
|
|||||||
} else {
|
} else {
|
||||||
services.restoreDevice(device);
|
services.restoreDevice(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we create a new device, we most probably don't have anything in db, but just in case
|
||||||
await services.restoreProcessesFromDB();
|
await services.restoreProcessesFromDB();
|
||||||
await services.restoreSecretsFromDB();
|
await services.restoreSecretsFromDB();
|
||||||
|
|
||||||
|
// We connect to all relays now
|
||||||
|
await services.connectAllRelays();
|
||||||
|
|
||||||
// We register all the event listeners if we run in an iframe
|
// We register all the event listeners if we run in an iframe
|
||||||
if (window.self !== window.top) {
|
if (window.self !== window.top) {
|
||||||
await registerAllListeners();
|
await registerAllListeners();
|
||||||
|
@ -62,7 +62,6 @@ export default class Services {
|
|||||||
for (const wsurl of Object.values(BOOTSTRAPURL)) {
|
for (const wsurl of Object.values(BOOTSTRAPURL)) {
|
||||||
this.updateRelay(wsurl, '');
|
this.updateRelay(wsurl, '');
|
||||||
}
|
}
|
||||||
await this.connectAllRelays();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public setProcessId(processId: string | null) {
|
public setProcessId(processId: string | null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user