Skip to content

Commit

Permalink
fixed subscription handling for lost instances
Browse files Browse the repository at this point in the history
  • Loading branch information
bheisen committed Aug 7, 2024
1 parent 6c6cbbf commit f15bd0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browser/vrpc.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion vrpc/VrpcClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ class VrpcClient extends EventEmitter {
json
if (removed.length !== 0) {
this.emit('instanceGone', removed, { domain, agent, className })
this._clearCachedSubscriptions({ lostInstance: removed })
removed.forEach(lostInstance =>
this._clearCachedSubscriptions({ lostInstance })
)
}
if (added.length !== 0) {
this.emit('instanceNew', added, { domain, agent, className })
Expand Down

0 comments on commit f15bd0a

Please sign in to comment.