forked from engineering/cloudservices
fixes
parent
76e189cbc9
commit
22c095ca7d
|
@ -33,6 +33,7 @@ export default class CSCLI {
|
||||||
}
|
}
|
||||||
|
|
||||||
public load(handlerFiles: { [s: string]: typeof TCPHandler; } | ArrayLike<typeof TCPHandler>) {
|
public load(handlerFiles: { [s: string]: typeof TCPHandler; } | ArrayLike<typeof TCPHandler>) {
|
||||||
|
this.handlers = new Collection();
|
||||||
const hdFiles = Object.values<typeof TCPHandler>(handlerFiles);
|
const hdFiles = Object.values<typeof TCPHandler>(handlerFiles);
|
||||||
for (const Handler of hdFiles) {
|
for (const Handler of hdFiles) {
|
||||||
const handler = new Handler();
|
const handler = new Handler();
|
||||||
|
|
Loading…
Reference in New Issue