Skip to content

Commit

Permalink
Fix(archive.js): Add handshake event listerner to fix archive timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Prash74 committed Aug 12, 2019
1 parent 0d8bd2e commit 8612c31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ async function archive(identity, opts = {}) {
}
})

stream.on('handshake', ()=> {didArchive = true})

socket.resume()
}

Expand Down

0 comments on commit 8612c31

Please sign in to comment.