File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ export default class SocketDaemon extends Daemon {
157
157
if ( updateAttempts < 6 ) {
158
158
return timer ( 10000 ) . subscribe ( ( ) => this . update ( ) ) ;
159
159
}
160
- this . error . next ( 'plugin version incompatible' ) ;
160
+ return this . error . next ( 'plugin version incompatible' ) ;
161
161
}
162
162
163
163
// Set channelOpen false for the first time
@@ -249,7 +249,7 @@ export default class SocketDaemon extends Daemon {
249
249
}
250
250
} ) . then ( ( ) => Promise . reject ( ) ) // We reject the promise because the daemon will be restarted, we need to continue looking for the port
251
251
. 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 ) ) {
253
253
this . error . next ( 'proxy error' ) ;
254
254
}
255
255
} ) ;
You can’t perform that action at this time.
0 commit comments