Skip to content

Commit

Permalink
Clear instance's connection on disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjulliand committed Mar 22, 2023
1 parent 717d0e7 commit a03edd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/Instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default class Instance {
await GlobalStorage.get().setLastConnection(connection.currentConnectionName);
}
else {
this.connection = undefined;
this.content = undefined;
this.storage.setConnectionName("");
}
Expand Down

0 comments on commit a03edd8

Please sign in to comment.