forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1239979: Cleanup |BluetoothSocket|'s internals when connections c…
…lose, r=btian With this patch, |BluetoothSocket| cleans up its internal state whenever a connection gets closed, either intentionally or from an error. The socket can then be reused for a new connection. If we try to destruct an open Bluetooth socket, we'd probably leak the file descriptor or transition into an undefined state. The destructor now asserts that the socket is closed.
- Loading branch information
Showing
2 changed files
with
56 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters