Skip to content

Commit 26e6cc2

Browse files
author
Stefania
committed
minor fixes update
1 parent f59ea37 commit 26e6cc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/socket-daemon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export default class SocketDaemon extends Daemon {
157157
if (updateAttempts < 6) {
158158
return timer(10000).subscribe(() => this.update());
159159
}
160-
this.error.next('plugin version incompatible');
160+
return this.error.next('plugin version incompatible');
161161
}
162162

163163
// Set channelOpen false for the first time
@@ -249,7 +249,7 @@ export default class SocketDaemon extends Daemon {
249249
}
250250
}).then(() => Promise.reject()) // We reject the promise because the daemon will be restarted, we need to continue looking for the port
251251
.catch(err => {
252-
if (err.data && err.data.error && (err.data.error.indexOf('proxy') !== -1 || err.data.error.indexOf('dial tcp') !== -1)) {
252+
if (err && err.data && err.data.error && (err.data.error.indexOf('proxy') !== -1 || err.data.error.indexOf('dial tcp') !== -1)) {
253253
this.error.next('proxy error');
254254
}
255255
});

0 commit comments

Comments
 (0)