Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LuKks committed Jan 29, 2024
1 parent f3d9204 commit 6923796
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 127 deletions.
13 changes: 6 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,14 @@ module.exports = class WebPeer extends ReadyResource {

function waitForRemote (remote) {
return new Promise(resolve => {
this.remote.on('open', done)
this.remote.on('open', done)
this.remote.on('error', done)
this.remote.on('close', done)
remote.on('open', done)
remote.on('error', done)
remote.on('close', done)

function done () {
this.remote.off('open', done)
this.remote.off('error', done)
this.remote.off('close', done)
remote.off('open', done)
remote.off('error', done)
remote.off('close', done)

resolve()
}
Expand Down
80 changes: 0 additions & 80 deletions index2.js

This file was deleted.

40 changes: 0 additions & 40 deletions test2.js

This file was deleted.

0 comments on commit 6923796

Please sign in to comment.