lib/createServer.js
/* This function is to allow 'CreateServer'
// to be optimized by isolating the 'try'.
// Because this is just to try and close the
// server, if it's somehow listening after
// erroring, we won't handle any errors that
// come out of this `CloseServer`.
*/
This function is to allow 'CreateServer'
to be optimized by isolating the 'try'.
Because this is just to try and close the
server, if it's somehow listening after
erroring, we won't handle any errors that
come out of this `CloseServer`.
This function is to allow ' CreateServer ' to be optimized by isolating the ' try ' . Because this is just to try and close the server if it ' s somehow listening after erroring we won ' t handle any errors that come out of this ` CloseServer ` .
function CloseServer(
  server
){
  try{
    if(typeof server.unref === 'function') server.unref();
    server.close();
  }
  catch(error){}
}
function CloseServer ( server ) { try { if ( typeof server . unref === 'function' ) server . unref ( ) ; server . close ( ) ; } catch ( error ) { } }
This function is to allow 'CreateServer'
to be optimized by isolating the 'try'.
This function is to allow ' CreateServer ' to be optimized by isolating the ' try ' .