MCPcopy Index your code
hub / github.com/nodejs/node / done

Function done

lib/internal/tls/wrap.js:450–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

448
449 let once = false;
450 const done = () => {
451 debug('onnewsession done');
452 if (once)
453 return;
454 once = true;
455
456 if (owner._handle === null)
457 return owner.destroy(new ERR_SOCKET_CLOSED());
458
459 this.newSessionDone();
460
461 owner._newSessionPending = false;
462 if (owner._securePending)
463 owner._finishInit();
464 owner._securePending = false;
465 };
466
467 owner._newSessionPending = true;
468

Callers 7

onnewsessionFunction · 0.70
wrap.jsFile · 0.70
waitForMethod · 0.50
pollerMethod · 0.50
closeWrappedMethod · 0.50
writeCallbackMethod · 0.50
endCheckCallbackMethod · 0.50

Calls 4

closeMethod · 0.65
debugFunction · 0.50
cbFunction · 0.50
destroyMethod · 0.45

Tested by

no test coverage detected