Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connectAndLogin not working #1

Open
IlyaSemenov opened this issue Oct 24, 2019 · 0 comments
Open

connectAndLogin not working #1

IlyaSemenov opened this issue Oct 24, 2019 · 0 comments

Comments

@IlyaSemenov
Copy link

connectAndLogin crashes:

(node:58749) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'exec' of undefined
    at Client._sendIpcCommand (/.../node_modules/tdl-multiprocess/lib/Client.js:114:37)
    at Client.connectAndLogin (/.../node_modules/tdl-multiprocess/lib/Client.js:93:17)

the current proxy implementation is clearly incorrect:

connectAndLogin() {
return this._sendIpcCommand('connectAndLogin')
}

async _sendIpcCommand(command, arg) {
const sArg = !!arg ? JSON.stringify(arg): undefined
const response = await this.ipc.exec(command, sArg)

because this._ipc is only constructed in login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant