MCPcopy Index your code
hub / github.com/ollm/OpenComic / closeServerST

Function closeServerST

scripts/server-client.js:129–139  ·  view source on GitHub ↗
(adress)

Source from the content-addressed store, hash-verified

127var closeServersST = {};
128
129function closeServerST(adress)
130{
131 closeServersST[adress] = setTimeout(async function(adress) {
132
133 console.log('Closing server: '+adress);
134
135 await servers[adress].destroy();
136 delete servers[adress];
137
138 }, 60 * 10 * 1000, adress); // Close server connection after 10 minutes without using
139}
140
141async function read(path, _realPath)
142{

Callers 2

readFunction · 0.85
downloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected