зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1037342: Close file descriptor in BluetoothSocket (under bluetooth2/), r=btian
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:
Родитель
3a7e7df6a3
Коммит
51dbdb677a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче