Skip to content

Commit 5c54bd9

Browse files
committed
Update clients reference and disable gc during testing
1 parent a8528e4 commit 5c54bd9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ setInterval(() => {
7070
});
7171
if (Object.keys(offenders).length > 0) console.log(offenders);
7272

73-
store.set('clients', {});
74-
global.gc();
73+
clients = {};
74+
store.set('clients', clients);
75+
if (process.env.spec !== "true") global.gc();
7576
}, settings.resetInterval);
7677

7778
function startServer() {

0 commit comments

Comments
 (0)