fix(windows): fix some startup problem under windows platform

This commit is contained in:
Alexey Kasyanchuk
2019-11-04 23:54:46 +03:00
parent d94656a347
commit 177d6ffc1a
5 changed files with 87 additions and 37 deletions

View File

@ -71,13 +71,13 @@ io.on('connection', (socket) =>
const start = async () =>
{
sphinx = await startSphinx(() => {
({ sphinx } = await startSphinx(() => {
dbPatcher(() => {
spider = new spiderCall((...data) => io.sockets.emit(...data), (message, callback) => {
socketMessages[message] = callback
}, path.resolve(packageJson.serverDataDirectory), packageJson.version, 'production')
}, null, sphinx)
}, path.resolve(packageJson.serverDataDirectory), () => {})
}, path.resolve(packageJson.serverDataDirectory), () => {}))
}
start()