Set default register timeout

Otherwise, bad things can happen if it's missing from config.json
This commit is contained in:
Andrew Ferrazzutti 2022-05-10 01:27:31 -04:00
parent 3f8660a3c4
commit 36598c34f6
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ import { promisify } from "./util.js"
export default class ClientManager { export default class ClientManager {
constructor(listenConfig, registerTimeout) { constructor(listenConfig, registerTimeout) {
this.listenConfig = listenConfig this.listenConfig = listenConfig
this.registerTimeout = registerTimeout this.registerTimeout = registerTimeout || 3000
this.server = net.createServer(this.acceptConnection) this.server = net.createServer(this.acceptConnection)
this.connections = [] this.connections = []
this.clients = new Map() this.clients = new Map()