The socket adds a listener for 'error' events twice, this results in the same error messages being handled twice, causing confusing logs and potentially unwanted behaviors.
This PR removes one of the listeners, resulting in just one listener on the socket.
The socket adds a listener for 'error' events twice, this results in the same error messages being handled twice, causing confusing logs and potentially unwanted behaviors.
This PR removes one of the listeners, resulting in just one listener on the socket.