Files
dht/jni
桥下红药 bcc166c53b fix(jni): stopServer 改为后台线程释放 Runtime,避免阻塞 JNI 调用线程
- 新增 take_handle: 转移 ServerHandle 所有权,替代 handle_ref+destroy_handle 两步调用
- 新增 shutdown_and_destroy_in_background: 先发关闭信号,再将整个 ServerHandle(含 tokio Runtime)移入专用后台线程 drop,避免 Runtime::drop 阻塞调用 stopServer 的 Java 线程
- jni_shutdown_and_release 改用 take_handle + shutdown_and_destroy_in_background
- 保留 stop/destroy_handle 供扩展,标注 #[allow(dead_code)] 并补充注释

Made-with: Cursor
2026-03-14 14:42:23 +08:00
..
jni
2026-03-13 02:15:50 +08:00