Skip to content

Commit

Permalink
fix(instances): fix instance service destroy (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmasse committed Aug 24, 2021
1 parent edf54c2 commit ffeb091
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/server/src/instances/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ export class InstanceService extends Service {
}

for (const conduitId of this.cache.keys()) {
const instance = this.cache.get(conduitId)!
await this.handleCacheDispose(conduitId, instance)
const instance = this.cache.get(conduitId)
if (instance) {
await this.handleCacheDispose(conduitId, instance)
}
}
}

Expand Down

0 comments on commit ffeb091

Please sign in to comment.