mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1035240: Close file descriptor in BluetoothSocket, r=shuang
Currently, BluetoothSocket leaks its file descriptor on close operations. With this patch when Gecko closes an instance of BluetoothSocket, the file descriptor is now closed as well.
This commit is contained in:
parent
7c253f0956
commit
e54dcfd3a7
@ -145,8 +145,7 @@ public:
|
||||
MOZ_ASSERT(!NS_IsMainThread());
|
||||
MOZ_ASSERT(!mShuttingDownOnIOThread);
|
||||
|
||||
RemoveWatchers(READ_WATCHER | WRITE_WATCHER);
|
||||
|
||||
Close(); // will also remove fd from I/O loop
|
||||
mShuttingDownOnIOThread = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user