latysheff / node-sctp

SCTP userspace sockets for Node.js
MIT License
59 stars 10 forks source link

sockets.ts: check this.destroyed in _write() methods (related to #17) #19

Closed ibc closed 4 years ago

ibc commented 4 years ago

Related to https://github.com/latysheff/node-sctp/issues/17:

Check this.destroyed in both _write() methods in sockets.js so the given callback is not executed if the socket/stream is already destroyed.