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

View File

@ -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()