Files
bmspy/tests
tim 0c179d29e5 Disconnect from Bluetooth devices before the server stops
The polling threads are daemon threads, so a stop ended the server in the middle of a Bluetooth read. The read got no disconnect, and the adapter kept an open connection or a scan in progress.

The server now sets the stop event at exit, closes its socket, and waits at most 20 seconds for the polling threads. A Bluetooth read that sees the stop event cancels its current step, disconnects, and returns. A read that waits for the adapter does not connect after a stop.
2026-10-10 11:47:16 +02:00
..
2026-05-02 23:12:29 +02:00
2026-05-02 23:12:29 +02:00
2026-10-10 10:59:34 +02:00
2026-05-02 23:12:29 +02:00
2026-05-02 23:12:29 +02:00