Bug 1323100 - Stop double-registering the Socket Transport thread. r=froydnj

MozReview-Commit-ID: 7YEC79PwUGg

--HG--
extra : rebase_source : 17b5fa5358507d0cd87e07068434472967f317e1
This commit is contained in:
Markus Stange 2016-12-21 17:57:07 +01:00
Родитель 34808aee09
Коммит dee0c78211
1 изменённых файлов: 0 добавлений и 9 удалений

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

@ -833,11 +833,6 @@ nsSocketTransportService::MarkTheLastElementOfPendingQueue()
NS_IMETHODIMP
nsSocketTransportService::Run()
{
#ifdef MOZ_ENABLE_PROFILER_SPS
char stackBaseGuess; // Need to be the first variable of main loop function.
profiler_register_thread(PR_GetThreadName(PR_GetCurrentThread()), &stackBaseGuess);
#endif // MOZ_ENABLE_PROFILER_SPS
SOCKET_LOG(("STS thread init %d sockets\n", gMaxCount));
psm::InitializeSSLServerCertVerificationThreads();
@ -1019,10 +1014,6 @@ nsSocketTransportService::Run()
SOCKET_LOG(("STS thread exit\n"));
#ifdef MOZ_ENABLE_PROFILER_SPS
profiler_unregister_thread();
#endif // MOZ_ENABLE_PROFILER_SPS
return NS_OK;
}