add a comment, fix a typo in debug message

This commit is contained in:
holger krekel
2022-05-04 10:41:44 +02:00
parent 138d5b7a02
commit 81ee69010d
3 changed files with 7 additions and 2 deletions

View File

@@ -657,7 +657,7 @@ pub unsafe extern "C" fn dc_get_next_event(events: *mut dc_event_emitter_t) -> *
#[no_mangle]
pub unsafe extern "C" fn dc_stop_io(context: *mut dc_context_t) {
if context.is_null() {
eprintln!("ignoring careless call to dc_shutdown()");
eprintln!("ignoring careless call to dc_stop_io()");
return;
}
let ctx = &*context;