Skip to content

Commit

Permalink
Make BackgroundImpl optional in the GPU process. (bug 1294350 part 7,…
Browse files Browse the repository at this point in the history
… r=billm)
  • Loading branch information
David Anderson committed Aug 23, 2016
1 parent 8bde6e5 commit 3362efb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ipc/glue/BackgroundImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1761,8 +1761,10 @@ ChildImpl::SynchronouslyCreateForCurrentThread()
void
ChildImpl::CloseForCurrentThread()
{
MOZ_ASSERT(sThreadLocalIndex != kBadThreadLocalIndex,
"BackgroundChild::Startup() was never called!");
if (sThreadLocalIndex == kBadThreadLocalIndex) {
return;
}

auto threadLocalInfo =
static_cast<ThreadLocalInfo*>(PR_GetThreadPrivate(sThreadLocalIndex));

Expand Down

0 comments on commit 3362efb

Please sign in to comment.