зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1777181 - Use cancelable runnables for DataPipe notifications, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D150611
This commit is contained in:
Родитель
a78fdd3dc0
Коммит
933e0ff56a
|
@ -570,7 +570,7 @@ NS_IMETHODIMP DataPipeSender::AsyncWait(nsIOutputStreamCallback* aCallback,
|
|||
uint32_t aRequestedCount,
|
||||
nsIEventTarget* aTarget) {
|
||||
AsyncWaitInternal(
|
||||
aCallback ? NS_NewRunnableFunction(
|
||||
aCallback ? NS_NewCancelableRunnableFunction(
|
||||
"DataPipeReceiver::AsyncWait",
|
||||
[self = RefPtr{this}, callback = RefPtr{aCallback}] {
|
||||
MOZ_LOG(gDataPipeLog, LogLevel::Debug,
|
||||
|
@ -641,7 +641,7 @@ NS_IMETHODIMP DataPipeReceiver::AsyncWait(nsIInputStreamCallback* aCallback,
|
|||
uint32_t aRequestedCount,
|
||||
nsIEventTarget* aTarget) {
|
||||
AsyncWaitInternal(
|
||||
aCallback ? NS_NewRunnableFunction(
|
||||
aCallback ? NS_NewCancelableRunnableFunction(
|
||||
"DataPipeReceiver::AsyncWait",
|
||||
[self = RefPtr{this}, callback = RefPtr{aCallback}] {
|
||||
MOZ_LOG(gDataPipeLog, LogLevel::Debug,
|
||||
|
|
Загрузка…
Ссылка в новой задаче