mirror of https://github.com/coder/code-server.git
fix(app.ts): resolve with server
This commit is contained in:
parent
f13ba9401b
commit
6bf51caa17
|
@ -46,10 +46,10 @@ export const createApp = async (args: DefaultedArgs): Promise<[Express, Express,
|
||||||
logger.error(error.message)
|
logger.error(error.message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
server.listen(args.socket, resolve)
|
server.listen(args.socket, () => resolve(server))
|
||||||
} else {
|
} else {
|
||||||
// [] is the correct format when using :: but Node errors with them.
|
// [] is the correct format when using :: but Node errors with them.
|
||||||
server.listen(args.port, args.host.replace(/^\[|\]$/g, ""), resolve)
|
server.listen(args.port, args.host.replace(/^\[|\]$/g, ""), () => resolve(server))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue