python: run and shutdown

This commit is contained in:
dignifiedquire
2020-05-19 15:31:28 +02:00
parent a6409dcd27
commit 236e9562fd
3 changed files with 2 additions and 3 deletions

View File

@@ -654,9 +654,7 @@ pub unsafe extern "C" fn dc_context_shutdown(context: *mut dc_context_t) {
let ffi_context = &*context;
with_inner_async!(ffi_context, ctx, async move {
eprintln!("SHUTDOWN");
ctx.stop().await;
eprintln!("SHUTDOWN:DONE")
})
.unwrap_or(())
}