diff options
Diffstat (limited to 'gui/src/main')
| -rw-r--r-- | gui/src/main/daemon-rpc.ts | 4 | ||||
| -rw-r--r-- | gui/src/main/index.ts | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gui/src/main/daemon-rpc.ts b/gui/src/main/daemon-rpc.ts index 78748b70ab..7491b20901 100644 --- a/gui/src/main/daemon-rpc.ts +++ b/gui/src/main/daemon-rpc.ts @@ -496,6 +496,10 @@ export class DaemonRpc { await this.transport.send('disconnect'); } + public async reconnectTunnel(): Promise<void> { + await this.transport.send('reconnect'); + } + public async getLocation(): Promise<ILocation | undefined> { const response = await this.transport.send('get_current_location', [], NETWORK_CALL_TIMEOUT); try { diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index a335a9f372..6663a5574e 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -943,6 +943,7 @@ class ApplicationMain { IpcMainEventChannel.tunnel.handleConnect(() => this.daemonRpc.connectTunnel()); IpcMainEventChannel.tunnel.handleDisconnect(() => this.daemonRpc.disconnectTunnel()); + IpcMainEventChannel.tunnel.handleReconnect(() => this.daemonRpc.reconnectTunnel()); IpcMainEventChannel.guiSettings.handleEnableSystemNotifications((flag: boolean) => { this.guiSettings.enableSystemNotifications = flag; |
