Bug 821621 - Fix unused variable warning in PeerConnectionCtx.cpp. r=jesup

This commit is contained in:
Chris Peterson 2012-12-15 00:22:47 -08:00
Родитель 1812f76ddc
Коммит 6b59cd00d7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -33,13 +33,13 @@ nsresult PeerConnectionCtx::InitializeGlobal(nsIThread *mainThread) {
} else {
MOZ_ASSERT(gMainThread == mainThread);
}
bool on;
nsresult res;
#ifdef MOZILLA_INTERNAL_API
// This check fails on the unit tests because they do not
// have the right thread behavior.
bool on;
res = gMainThread->IsOnCurrentThread(&on);
NS_ENSURE_SUCCESS(res, res);
MOZ_ASSERT(on);