Skip to content

Commit

Permalink
fix: Ensure sync errors are always propagated to frontend.
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Jul 21, 2020
1 parent 2f81f4f commit 2ceec76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function createServer({ privateStorage, sharedStorage, flavor }) {
severity: "error",
context: "sync"
});
sendPeerUpdateToRN();
sync.removeListener("error", onerror);
sync.removeListener("progress", throttledSendPeerUpdateToRN);
sync.removeListener("end", onend);
Expand Down

0 comments on commit 2ceec76

Please sign in to comment.