зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1411520 - nsMultiplexInputStream must use CancelableRunnable because it can be used in workers, r=bkelly
This commit is contained in:
Родитель
afc0471f35
Коммит
acd3aaaa13
|
@ -729,13 +729,13 @@ nsMultiplexInputStream::CloseWithStatus(nsresult aStatus)
|
|||
|
||||
// This class is used to inform nsMultiplexInputStream that it's time to execute
|
||||
// the asyncWait callback.
|
||||
class AsyncWaitRunnable final : public Runnable
|
||||
class AsyncWaitRunnable final : public CancelableRunnable
|
||||
{
|
||||
RefPtr<nsMultiplexInputStream> mStream;
|
||||
|
||||
public:
|
||||
explicit AsyncWaitRunnable(nsMultiplexInputStream* aStream)
|
||||
: Runnable("AsyncWaitRunnable")
|
||||
: CancelableRunnable("AsyncWaitRunnable")
|
||||
, mStream(aStream)
|
||||
{
|
||||
MOZ_ASSERT(aStream);
|
||||
|
|
Загрузка…
Ссылка в новой задаче