summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/lib/backend.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js
index 38adc6cf14..0aa8ccf37e 100644
--- a/app/lib/backend.js
+++ b/app/lib/backend.js
@@ -196,10 +196,10 @@ export default class Backend extends EventEmitter {
sync() {
log.info('Syncing with the backend...');
- this._ipc.send('get_connection')
- .then( connectionInfo => {
- log.info('Got connection info', connectionInfo);
- this.emit(Backend.EventType.updatedIp, connectionInfo.ip);
+ this._ipc.send('get_ip')
+ .then( ip => {
+ log.info('Got ip', ip);
+ this.emit(Backend.EventType.updatedIp, ip);
})
.catch(e => {
log.info('Failed syncing with the backend', e);