Skip to content

Commit

Permalink
fix: registrar on disconnect only when no connections
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Jan 13, 2020
1 parent c44e6e3 commit 0cba446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registrar.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Registrar {
let storedConn = this.connections.get(id)

if (storedConn && storedConn.length > 1) {
storedConn = storedConn.filter((conn) => conn.id === connection.id)
storedConn = storedConn.filter((conn) => conn.id !== connection.id)
this.connections.set(id, storedConn)
} else if (storedConn) {
for (const [, topology] of this.topologies) {
Expand Down

0 comments on commit 0cba446

Please sign in to comment.