Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clientDisconnect emited twice #28

Closed
litbak opened this issue Feb 3, 2016 · 2 comments
Closed

clientDisconnect emited twice #28

litbak opened this issue Feb 3, 2016 · 2 comments

Comments

@litbak
Copy link

litbak commented Feb 3, 2016

when a client disconnects abnormally without a disconnect message, the clientDisconnect event emited twice, which also infulence connected client count.

aedes.on('clientDisconnect', function(client) {
console.log('Client Disconnected: ' + client.id + ' total: ' + aedes.connectedClients);
});

@mcollina
Copy link
Collaborator

mcollina commented Feb 3, 2016

this should be easy to fix, would you mind sending a PR?

@mcollina
Copy link
Collaborator

I've tried hard to reproduce this, and I couldn't.
Can you please add steps to reproduce?

Closing for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants