Cleanly terminate deltachat-rpc-server (#4234)

Do it as per "Thread safety" section in deltachat-ffi/deltachat.h. Also terminate on ctrl-c.
This commit is contained in:
iequidoo
2023-04-04 11:33:48 -04:00
committed by iequidoo
parent cecc080931
commit f1eeb1df8c
4 changed files with 51 additions and 13 deletions

View File

@@ -20,6 +20,7 @@ log = "0.4"
serde_json = "1.0.95"
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.27.0", features = ["io-std"] }
tokio-util = "0.7.7"
yerpc = { version = "0.4.0", features = ["anyhow_expose"] }
[features]