File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -284,11 +284,9 @@ export default class SocketDaemon extends Daemon {
284
284
} )
285
285
. then ( result => result . json ( ) )
286
286
. then ( response => {
287
- if ( ! response . ok ) {
288
- if ( response && response . error && ( response . error . indexOf ( 'proxy' ) !== - 1 || response . error . indexOf ( 'dial tcp' ) !== - 1 ) ) {
289
- this . error . next ( 'proxy error' ) ;
290
- return new Error ( 'proxy error' ) ;
291
- }
287
+ if ( response && response . error && ( response . error . indexOf ( 'proxy' ) !== - 1 || response . error . indexOf ( 'dial tcp' ) !== - 1 ) ) {
288
+ this . error . next ( 'proxy error' ) ;
289
+ return new Error ( 'proxy error' ) ;
292
290
}
293
291
// We reject the promise because the daemon will be restarted, we need to continue looking for the port
294
292
return Promise . reject ( ) ;
You can’t perform that action at this time.
0 commit comments