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

MozReview-Commit-ID: 7YEC79PwUGg

--HG--
extra : rebase_source : 90beae6f131d646ef7ef324a74a65a2d0a6772d6
This commit is contained in:
Markus Stange 2016-12-21 17:57:07 +01:00
parent e442f76c87
commit 1713897687

View file

@ -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;
}