Commit graph

7 commits

Author SHA1 Message Date
Christopher Willis-Ford
7daf7143fe style(Win): apply automatic code cleanup 2023-06-01 14:52:19 -07:00
Christopher Willis-Ford
9ecc2ad57f refactor: clarify that PeripheralSession tracks discovered peripherals
Windows will use different types for discovered peripherals vs.
connected peripherals, so it's now important to distinguish between the
two types.
2023-01-30 09:36:53 -08:00
Christopher Willis-Ford
53bbe3b6e3 fix(MacBT): make BT disconnect/reconnect more reliable, especially after pairing 2023-01-13 08:21:38 -08:00
Christopher Willis-Ford
a55075b81d refactor(bt): support PIN code argument for Connect 2023-01-13 08:21:37 -08:00
Christopher Willis-Ford
eed937fd18 fix: fix DisposedException by removing cancellation token
We really use the socket state to control the session, so there's no
need to also pass a CancellationToken around. The exception was being
caused when an unlucky callback happened after a session was disposed
and the callback tried to get a new token to check cancellation. If the
token source is already disposed, it can't provide a new token.

Also, remove some excessive logging and add more exception logging.
2023-01-13 08:21:37 -08:00
Christopher Willis-Ford
bddf0dc50f clean up JsonRpc2Exception a bit 2023-01-13 08:21:36 -08:00
Christopher Willis-Ford
7ec18de421 share BTSession's address privacy implementation with BLESession 2023-01-13 08:21:36 -08:00