Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
fix(webrtc-star): use destroy instead of emit for closing a conn
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Sep 7, 2016
1 parent 727d562 commit 0704bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webrtc-star/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function WebRTCStar () {
conn.destroy = channel.destroy.bind(channel)

channel.on('close', () => {
conn.emit('close')
conn.destroy()
})

conn.getObservedAddrs = (callback) => {
Expand Down

0 comments on commit 0704bf2

Please sign in to comment.