Set default register timeout
Otherwise, bad things can happen if it's missing from config.json
This commit is contained in:
parent
3f8660a3c4
commit
36598c34f6
|
@ -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…
Reference in New Issue