From d82c96db7e5c0c2aabd2762a1cedfdf40982c72b Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 19 Apr 2021 23:57:09 -0400 Subject: [PATCH] fix --- src/class/CSCLI.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/class/CSCLI.ts b/src/class/CSCLI.ts index def229e..a879d5f 100644 --- a/src/class/CSCLI.ts +++ b/src/class/CSCLI.ts @@ -11,8 +11,8 @@ export default class CSCLI { public client: Client; public servers: { - tcp: net.Server, - unix: net.Server, + tcp?: net.Server, + unix?: net.Server, }; public handlers: Collection; @@ -21,6 +21,7 @@ export default class CSCLI { constructor(client: Client) { this.client = client; + this.servers = {}; this.loadKeys(); this.servers.tcp = net.createServer((socket) => { socket.on('data', async (data) => {