Skip to content

Commit c182b7f

Browse files
author
Stefania
committed
minor fix update attempts
1 parent 6161ff2 commit c182b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socket-daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ export default class SocketDaemon extends Daemon {
154154
return this.agentInfo;
155155
}
156156

157-
updateAttempts += 1;
158157
if (updateAttempts === 0) {
159158
return this.update();
160159
}
161160
if (updateAttempts < 3) {
162161
return timer(10000).subscribe(() => this.update());
163162
}
163+
updateAttempts += 1;
164164
this.error.next('plugin version incompatible');
165165
return Promise.reject(new Error('plugin version incompatible'));
166166
}))

0 commit comments

Comments
 (0)