Bug 1442404: Don't spin STS when shutting down the mtransport thread. r=drno

MozReview-Commit-ID: 47BImEsl9xi

--HG--
extra : rebase_source : 9fd820f4db145642f1184264ae991ea0748b0479
This commit is contained in:
Byron Campen [:bwc] 2018-03-06 12:30:16 -06:00
parent e43399c28e
commit a5fa4c3bfb

View File

@ -233,7 +233,7 @@ public:
// in-use -> idle -- no one forcing it to remain instantiated
r_log(LOG_GENERIC,LOG_DEBUG,"Shutting down wrapped SingletonThread %p",
mThread.get());
mThread->Shutdown();
mThread->AsyncShutdown();
mThread = nullptr;
// It'd be nice to use a timer instead... But be careful of
// xpcom-shutdown-threads in that case