mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 23:50:45 +00:00
Address code review feedback: the direct ssh2.Client connect path was missing end/close event handlers. If the server closes the connection before 'ready' (e.g. rejected handshake, hop drops), the promise now properly rejects instead of hanging forever. Uses a settle/cleanup pattern to ensure listeners are removed and the promise is resolved/rejected exactly once.