зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1315248 - Hold on to references for WrapRunnable in UDPSocketParent. r=jesup
MozReview-Commit-ID: CA14BbXYtcj --HG-- extra : amend_source : aedd161e24a6a3d741651d8e96a1c842a66f5ca3
This commit is contained in:
Родитель
d0b50071c8
Коммит
5600346fac
|
@ -244,7 +244,7 @@ UDPSocketParent::RecvConnect(const UDPAddressInfo& aAddressInfo)
|
|||
nsCOMPtr<nsIEventTarget> thread(NS_GetCurrentThread());
|
||||
Unused <<
|
||||
NS_WARN_IF(NS_FAILED(GetSTSThread()->Dispatch(WrapRunnable(
|
||||
this,
|
||||
RefPtr<UDPSocketParent>(this),
|
||||
&UDPSocketParent::DoConnect,
|
||||
mSocket,
|
||||
thread,
|
||||
|
@ -266,7 +266,7 @@ UDPSocketParent::SendConnectResponse(nsIEventTarget *aThread,
|
|||
{
|
||||
Unused <<
|
||||
NS_WARN_IF(NS_FAILED(aThread->Dispatch(WrapRunnable(
|
||||
this,
|
||||
RefPtr<UDPSocketParent>(this),
|
||||
&UDPSocketParent::DoSendConnectResponse,
|
||||
aAddressInfo),
|
||||
NS_DISPATCH_NORMAL)));
|
||||
|
@ -586,7 +586,7 @@ UDPSocketParent::SendInternalError(nsIEventTarget *aThread,
|
|||
UDPSOCKET_LOG(("SendInternalError: %u", aLineNo));
|
||||
Unused <<
|
||||
NS_WARN_IF(NS_FAILED(aThread->Dispatch(WrapRunnable(
|
||||
this,
|
||||
RefPtr<UDPSocketParent>(this),
|
||||
&UDPSocketParent::FireInternalError,
|
||||
aLineNo),
|
||||
NS_DISPATCH_NORMAL)));
|
||||
|
|
Загрузка…
Ссылка в новой задаче