Rename onunload
This commit is contained in:
parent
39561d386e
commit
e6eedab87d
3 changed files with 3 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ export default class VaultLinkPlugin extends Plugin {
|
|||
}
|
||||
|
||||
public onunload(): void {
|
||||
this.client.onunload();
|
||||
this.client.stop();
|
||||
}
|
||||
|
||||
public openSettings(): void {
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ export class SyncClient {
|
|||
this.logger.reset();
|
||||
}
|
||||
|
||||
public onunload(): void {
|
||||
public stop(): void {
|
||||
if (this.remoteListenerIntervalId !== null) {
|
||||
clearInterval(this.remoteListenerIntervalId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ export class MockAgent extends MockClient {
|
|||
await Promise.all(this.pendingActions);
|
||||
await this.client.settings.setSetting("isSyncEnabled", true);
|
||||
await this.client.syncer.applyRemoteChangesLocally();
|
||||
this.client.stop();
|
||||
}
|
||||
|
||||
public assertFileSystemIsConsistent(): void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue