Bug 1577719: Init r_log in the c'tor, to simplify things. r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D45463

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Byron Campen [:bwc] 2019-09-11 02:29:15 +00:00
Родитель 73510ce199
Коммит 6e3f7f6bb1
1 изменённых файлов: 3 добавлений и 6 удалений

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

@ -233,6 +233,9 @@ MediaTransportHandlerSTS::MediaTransportHandlerSTS(
if (!mStsThread) {
MOZ_CRASH();
}
RLogConnector::CreateInstance();
CSFLogDebug(LOGTAG, "%s done", __func__);
// We do not set up mDNSService here, because we are not running on main (we
@ -1080,9 +1083,6 @@ void MediaTransportHandlerSTS::ClearIceLog() {
}
void MediaTransportHandlerSTS::EnterPrivateMode() {
// Do this from calling thread, because that's what we do in CreateIceCtx...
RLogConnector::CreateInstance();
if (!mStsThread->IsOnCurrentThread()) {
mStsThread->Dispatch(
WrapRunnable(RefPtr<MediaTransportHandlerSTS>(this),
@ -1095,9 +1095,6 @@ void MediaTransportHandlerSTS::EnterPrivateMode() {
}
void MediaTransportHandlerSTS::ExitPrivateMode() {
// Do this from calling thread, because that's what we do in CreateIceCtx...
RLogConnector::CreateInstance();
if (!mStsThread->IsOnCurrentThread()) {
mStsThread->Dispatch(
WrapRunnable(RefPtr<MediaTransportHandlerSTS>(this),