From 36598c34f6ed451ebb84d7d578aba6f346f7b2c9 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Tue, 10 May 2022 01:27:31 -0400 Subject: [PATCH] Set default register timeout Otherwise, bad things can happen if it's missing from config.json --- node/src/clientmanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/clientmanager.js b/node/src/clientmanager.js index fb02a46..3a0d94a 100644 --- a/node/src/clientmanager.js +++ b/node/src/clientmanager.js @@ -24,7 +24,7 @@ import { promisify } from "./util.js" export default class ClientManager { constructor(listenConfig, registerTimeout) { this.listenConfig = listenConfig - this.registerTimeout = registerTimeout + this.registerTimeout = registerTimeout || 3000 this.server = net.createServer(this.acceptConnection) this.connections = [] this.clients = new Map()