MCPcopy Create free account
hub / github.com/mscdex/ssh2 / destroy

Method destroy

lib/protocol/SFTP.js:286–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 this.destroy();
285 }
286 destroy() {
287 if (this.outgoing.state === 'open' || this.outgoing.state === 'eof') {
288 this.outgoing.state = 'closing';
289 this._protocol.channelClose(this.outgoing.id);
290 }
291 }
292 _init() {
293 this._init = noop;
294 if (!this.server)

Callers 7

endMethod · 0.95
doFatalSFTPErrorFunction · 0.45
ReadStreamFunction · 0.45
SFTP.jsFile · 0.45
WriteStreamFunction · 0.45
tryStatFunction · 0.45
onwriteFunction · 0.45

Calls 1

channelCloseMethod · 0.80

Tested by

no test coverage detected