Skip to content

Commit

Permalink
Merge pull request #14 from rhaldkhein/master
Browse files Browse the repository at this point in the history
Fix provider not destroying properly
  • Loading branch information
dmonad authored Sep 28, 2020
2 parents baa90ac + e058263 commit d9f2b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/y-webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ export class WebrtcProvider extends Observable {
conn.providers.delete(this)
if (conn.providers.size === 0) {
conn.destroy()
signalingConns.delete(this.roomName)
signalingConns.delete(conn.url)
}
})
if (this.room) {
Expand Down

0 comments on commit d9f2b28

Please sign in to comment.