mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 19:05:20 +00:00
Replace blocking Thread.sleep in stopServices() with a cooperative RunLoop-based delay. This allows BLE callbacks to fire during the shutdown delay, improving reliability of leave message transmission. The delay is needed to give the leave message time to transmit before disconnecting peers and stopping the BLE stack.