Bug 1889080 - Use overloaded Unused operator to leak runnable in RemoteLazyInputStreamThread::Dispatch. r=dom-storage-reviewers,janv

Differential Revision: https://phabricator.services.mozilla.com/D206341
This commit is contained in:
Jens Stutte 2024-04-02 12:12:55 +00:00
parent fe347d24f2
commit 81762982da

View file

@ -151,7 +151,7 @@ RemoteLazyInputStreamThread::Dispatch(already_AddRefed<nsIRunnable> aRunnable,
if (RLISThreadIsInOrBeyondShutdown()) {
// nsIEventTarget::Dispatch must leak the runnable if the dispatch fails.
(void)runnable.forget();
Unused << runnable.forget();
return NS_ERROR_ILLEGAL_DURING_SHUTDOWN;
}