Skip to content

Commit

Permalink
emit channelOpen status on change only
Browse files Browse the repository at this point in the history
  • Loading branch information
smellai committed Aug 6, 2018
1 parent 66ddcda commit 8edc49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class Daemon {

this.agentInfo = {};
this.agentFound = new BehaviorSubject(null);
this.channelOpen = new BehaviorSubject(null);
this.channelOpen = new BehaviorSubject(null).pipe(distinctUntilChanged());
this.error = new BehaviorSubject(null).pipe(distinctUntilChanged());

this.appMessages = new Subject();
Expand Down

0 comments on commit 8edc49e

Please sign in to comment.