Skip to content

Commit

Permalink
server: fix deleted device leak
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 28, 2023
1 parent dbc4517 commit bb18424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ export class ScryptedRuntime extends PluginHttp<HttpPluginData> {

this.invalidatePluginDevice(device._id);
delete this.pluginDevices[device._id];
delete this.devices[device._id];
await this.datastore.remove(device);
this.stateManager.removeDevice(device._id);

Expand Down

0 comments on commit bb18424

Please sign in to comment.