Bug 1308147. Part 5 - reject mPendingSeek in DormantState::Exit(). r=kikuo

MozReview-Commit-ID: HfQCWBNtUwZ

--HG--
extra : rebase_source : ebae0bc2c8c91a859eb254f5fa1c947abc869ed3
extra : source : 69296a28551d1e2d1013790e2cfd7e063beea246
This commit is contained in:
JW Wang 2016-10-19 18:12:06 +08:00
parent a05dfac69c
commit 41648a7e80

View File

@ -444,8 +444,9 @@ public:
void Exit() override
{
// Transfer the seek job so it is available to the next state.
mMaster->mQueuedSeek = Move(mPendingSeek);
// mPendingSeek is either moved in HandleDormant() or should be rejected
// here before transition to SHUTDOWN.
mPendingSeek.RejectIfExists(__func__);
}
State GetState() const override