diff options
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/ipc-facade.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/lib/ipc-facade.js b/app/lib/ipc-facade.js index 145971e289..244e6bcc4b 100644 --- a/app/lib/ipc-facade.js +++ b/app/lib/ipc-facade.js @@ -268,7 +268,10 @@ export class RealIpc implements IpcFacade { } getLocation(): Promise<Location> { - return this._ipc.send('get_current_location') + // send the IPC with 30s timeout since the backend will wait + // for a HTTP request before replying + + return this._ipc.send('get_current_location', [], 30000) .then(raw => { try { const validated: any = validate(LocationSchema, raw); |
