void Run() override { MOZ_ASSERT(GetIO()->IsConsumerThread()); if (IsCanceled()) { return; } RilSocketIO* io = GetIO(); if (io->IsShutdownOnConsumerThread()) { return; } io->ClearDelayedConnectTask(); io->GetIOLoop()->PostTask(FROM_HERE, new ConnectTask(io)); }
NS_IMETHOD Run() override { MOZ_ASSERT(GetIO()->IsConsumerThread()); if (IsCanceled()) { return NS_OK; } RilSocketIO* io = GetIO(); if (io->IsShutdownOnConsumerThread()) { return NS_OK; } io->ClearDelayedConnectTask(); io->GetIOLoop()->PostTask(MakeAndAddRef<ConnectTask>(io)); return NS_OK; }