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

Function onClose

test/common.js:211–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209 }
210
211 function onClose() {
212 if (this === client) {
213 assert(!clientClose,
214 msg('Received multiple close events for client'));
215 clientClose = true;
216 } else {
217 assert(!serverClose,
218 msg('Received multiple close events for server'));
219 serverClose = true;
220 }
221 if (clientClose && serverClose)
222 clearTimeout(timer);
223 }
224
225 process.nextTick(mustCall(() => {
226 function connectClient() {

Callers

nothing calls this directly

Calls 2

assertFunction · 0.85
msgFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…