TooTallNate / node-nat-pmp

Node.js implementation of the NAT Port Mapping Protocol
132 stars 16 forks source link

Do not try to process request when client is closed #13

Open yciabaud opened 7 years ago

yciabaud commented 7 years ago

When I call close with pending requests, _next is called with a null socket and it tries to call connect() instead of skipping the request.

This PR checks the socket before sending the request.

oleiba commented 6 years ago

+1

DiegoRBaquero commented 6 years ago

@TooTallNate Could we get this merged? :)