mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1152095 - Check mResultHandlerQ is empty before dispatching DispatchError. r=tzimmermann
This commit is contained in:
parent
f2b2d16cce
commit
362034f21c
@ -1898,7 +1898,8 @@ BluetoothDaemonInterface::OnConnectError(enum Channel aChannel)
|
||||
// Stop daemon and close listen socket
|
||||
unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd"));
|
||||
mListenSocket->Close();
|
||||
case LISTEN_SOCKET: {
|
||||
case LISTEN_SOCKET:
|
||||
if (!mResultHandlerQ.IsEmpty()) {
|
||||
// Signal error to caller
|
||||
nsRefPtr<BluetoothResultHandler> res = mResultHandlerQ.ElementAt(0);
|
||||
mResultHandlerQ.RemoveElementAt(0);
|
||||
|
Loading…
Reference in New Issue
Block a user