deltachat-bot / echo

An echo bot in multiple languages to get you started
The Unlicense
15 stars 4 forks source link

nodejs_napi_jsonrpc: Echo bot won't respond after restart #47

Closed realpixelcode closed 1 year ago

realpixelcode commented 1 year ago

node . works fine, but when stopping the process and restarting it, the echo bot won't respond anymore.

Work-around: Delete deltachat-data before restarting the bot.

Simon-Laux commented 1 year ago

probably needs an else block in the configure check that starts io (connect to mailserver) if already configured.

configure has startIo already included in the jsonrpc method:

https://github.com/deltachat/deltachat-core-rust/blob/749f00766fad79456f73498fe99c4160bce59a10/deltachat-jsonrpc/src/api/mod.rs#L301-L313

https://github.com/deltachat/deltachat-core-rust/blob/749f00766fad79456f73498fe99c4160bce59a10/deltachat-jsonrpc/typescript/generated/client.ts#L80