Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/node_modules/pouchdb-replication/src/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@ class Sync extends EE {
doc
});
};
const pushPaused = () => {
const pushPaused = (err) => {
this.pushPaused = true;
/* istanbul ignore if */
if (this.pullPaused) {
this.emit('paused');
this.emit('paused',err);
}
};
const pullPaused = () => {
const pullPaused = (err) => {
this.pullPaused = true;
/* istanbul ignore if */
if (this.pushPaused) {
this.emit('paused');
this.emit('paused',err);
}
};
const pushActive = () => {
Expand Down
Loading