summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/lib/ipc-facade.js5
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);