Loading
Bug 1834640 - Part 2: Properly shutdown nsSocketTransportService during...
Bug 1834640 - Part 2: Properly shutdown nsSocketTransportService during xpcom-shutdown-threads, r=jesup,necko-reviewers This also cleans up some of the unnecessary flags & memebrs which were held during the changes in bug 1818998. mSelf was unncessary as the runnable reference will be keeping the instance alive for the same lifetime, and mSocketThreadShutDown was redundant with !mInitialized. This change will also fix a potential issue where the socket thread was not being shut down when switching the browser into an offline state from `profile-change-net-teardown`, which could've lead to thread leaks when the browser is returned to an online state. The restore codepath, however, has been dead for a long time so this is unlikely to be a real issue in practice. Depends on D178867 Differential Revision: https://phabricator.services.mozilla.com/D178868