Skip to content

Commit

Permalink
pr review requested changes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev committed Oct 28, 2020
1 parent a2146c0 commit 374d241
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/datastore/src/datastore/datastore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,10 @@ class DataStore {
};

stop = async function stop() {
if (this.initialized !== undefined) {
await this.start();
}

if (syncSubscription && !syncSubscription.closed) {
syncSubscription.unsubscribe();
}
Expand Down

0 comments on commit 374d241

Please sign in to comment.