You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Listeners on 'remotedeviceready' are never removed when the initiating peer disconnects, causing memory leak. MaxListenersExceededWarning issued after default 10 listeners are enabled.
Somewhat related to #294 and could be fixed at the same time as that.
The text was updated successfully, but these errors were encountered:
But that listener is never removed, even if the peer disconnects. Then if the same peer reconnects, a new listener is registered. The listeners just keep building up.
I tested moving the listener function out to a function named 'matchDevice' and then subscribing to a disconnect:
Listeners on 'remotedeviceready' are never removed when the initiating peer disconnects, causing memory leak. MaxListenersExceededWarning issued after default 10 listeners are enabled.
Somewhat related to #294 and could be fixed at the same time as that.
The text was updated successfully, but these errors were encountered: