Skip to content

Commit b36628f

Browse files
maralornjanl
authored andcommitted
fix(replication): Propagate errors on 'paused' from underlying replication to sync event
1 parent b2c3e58 commit b36628f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • packages/node_modules/pouchdb-replication/src

packages/node_modules/pouchdb-replication/src/sync.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ class Sync extends EE {
6060
doc
6161
});
6262
};
63-
const pushPaused = () => {
63+
const pushPaused = (err) => {
6464
this.pushPaused = true;
6565
/* istanbul ignore if */
6666
if (this.pullPaused) {
67-
this.emit('paused');
67+
this.emit('paused',err);
6868
}
6969
};
70-
const pullPaused = () => {
70+
const pullPaused = (err) => {
7171
this.pullPaused = true;
7272
/* istanbul ignore if */
7373
if (this.pushPaused) {
74-
this.emit('paused');
74+
this.emit('paused',err);
7575
}
7676
};
7777
const pushActive = () => {

0 commit comments

Comments
 (0)