You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Chore: Sync fuzzer: Add new possible actions: Adding and syncing a new temporary client on an existing account (#12741)
This commit is contained in:
@@ -45,6 +45,17 @@ export default class ClientPool {
|
||||
];
|
||||
}
|
||||
|
||||
public async newWithSameAccount(sourceClient: Client) {
|
||||
const client = await sourceClient.createClientOnSameAccount();
|
||||
this.listenForClientClose_(client);
|
||||
this.clients_ = [...this.clients_, client];
|
||||
return client;
|
||||
}
|
||||
|
||||
public othersWithSameAccount(client: Client) {
|
||||
return this.clients_.filter(other => other !== client && other.hasSameAccount(client));
|
||||
}
|
||||
|
||||
public async checkState() {
|
||||
for (const client of this.clients_) {
|
||||
await client.checkState();
|
||||
|
||||
Reference in New Issue
Block a user