Skip to content

Commit f79b199

Browse files
author
smellai
committed
removed unused import, added error handling
1 parent 55d5910 commit f79b199

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/socket-daemon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import semVerCompare from 'semver-compare';
3232
import { detect } from 'detect-browser';
3333

3434
import { BehaviorSubject, timer } from 'rxjs';
35-
import { delayWhen, filter, takeUntil, first } from 'rxjs/operators';
35+
import { filter, takeUntil } from 'rxjs/operators';
3636

3737
import Daemon from './daemon';
3838

@@ -157,6 +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');
160161
}
161162
return Promise.reject(new Error(`${CANT_FIND_AGENT_MESSAGE} at ${hostname}`));
162163
});

0 commit comments

Comments
 (0)