fix(core): update

This commit is contained in:
Philipp Kunz 2023-07-02 02:09:04 +02:00
parent dab87b274d
commit 9828f7bc13
3 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiglobal/typedserver',
version: '2.0.63',
version: '2.0.64',
description: 'easy serving of static files'
}

View File

@ -244,7 +244,7 @@ export class Server {
connection.addListener('end', endListener);
connection.addListener('timeout', timeoutListener);
const cleanupConnection = () => {
const cleanupConnection = async () => {
connection.removeListener('close', closeListener);
connection.removeListener('error', errorListener);
connection.removeListener('end', endListener);
@ -253,6 +253,7 @@ export class Server {
if (this.socketMap.checkForObject(connection)) {
this.socketMap.remove(connection);
console.log(`removed connection. ${this.socketMap.getArray().length} sockets remaining.`);
await plugins.smartdelay.delayFor(0);
connection.destroy();
}
};

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiglobal/typedserver',
version: '2.0.63',
version: '2.0.64',
description: 'easy serving of static files'
}