mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-05-17 20:20:34 +00:00
79e0409474
AFC's close-on-drop used block_in_place + block_on to synchronously send a FileClose packet, requiring tokio's rt-multi-thread feature. This is heavyweight for a best-effort cleanup that already did nothing on wasm and single-threaded runtimes. Replace with a simple no-op drop that warns (debug_assert + println) if .close().await wasn't called. The device reclaims FDs when the AFC session ends regardless. Also fix the afc tool to explicitly close file descriptors after use.