net: inline maybeDestroy()
maybeDestroy()
is only called from the listener of the 'end'
event.
That event is only emitted after the socket is connected (after UV_EOF
is read) and after socket.readable
is set to false
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines