Closed nnevala closed 9 years ago
I noticed the connected and failed event listeners are not removed when connection is closed, causing them to pile up if connect/close cycle is called multiple times.
connected
failed
This fixes the issue by simply removing the listeners when close() is called.
close()
Thanks! Merged and published.
I noticed the
connected
andfailed
event listeners are not removed when connection is closed, causing them to pile up if connect/close cycle is called multiple times.This fixes the issue by simply removing the listeners when
close()
is called.