Set default register timeout

Otherwise, bad things can happen if it's missing from config.json
testing
Andrew Ferrazzutti 11 months ago
parent 3f8660a3c4
commit 36598c34f6
  1. 2
      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()

Loading…
Cancel
Save