File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,7 @@ export default class SocketDaemon extends Daemon {
76
76
77
77
this . agentFound
78
78
. subscribe ( agentFound => {
79
- if ( agentFound ) {
80
- this . _wsConnect ( ) ;
81
- }
82
- else {
79
+ if ( ! agentFound ) {
83
80
this . findAgent ( ) ;
84
81
}
85
82
} ) ;
@@ -147,14 +144,17 @@ export default class SocketDaemon extends Daemon {
147
144
148
145
if ( found ) {
149
146
if ( this . agentInfo . version && ( semVerCompare ( this . agentInfo . version , MIN_VERSION ) >= 0 || this . agentInfo . version . indexOf ( 'dev' ) !== - 1 ) ) {
147
+ this . _wsConnect ( ) ;
150
148
return this . agentInfo ;
151
149
}
152
150
151
+ this . channelOpen . next ( false ) ;
152
+
153
153
updateAttempts += 1 ;
154
154
if ( updateAttempts === 0 ) {
155
155
return this . update ( ) ;
156
156
}
157
- if ( updateAttempts < 6 ) {
157
+ if ( updateAttempts < 5 ) {
158
158
return timer ( 10000 ) . subscribe ( ( ) => this . update ( ) ) ;
159
159
}
160
160
return this . error . next ( 'plugin version incompatible' ) ;
You can’t perform that action at this time.
0 commit comments