Bug 383786 - nsIOService uses an Init method when it doesn't need to. Patch by Ryan Jones <sciguyryan@gmail.com>. r=bzbarsky sr=cbiesinger

This commit is contained in:
sdwilsh@shawnwilsher.com 2007-06-10 17:01:48 -07:00
Родитель 48015965e8
Коммит d2866ca59e
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -202,12 +202,16 @@ nsIOService::Init()
// TODO(darin): Load the Socket and DNS services lazily.
mSocketTransportService = do_GetService(kSocketTransportServiceCID, &rv);
if (NS_FAILED(rv))
if (NS_FAILED(rv)) {
NS_WARNING("failed to get socket transport service");
return rv;
}
mDNSService = do_GetService(kDNSServiceCID, &rv);
if (NS_FAILED(rv))
if (NS_FAILED(rv)) {
NS_WARNING("failed to get DNS service");
return rv;
}
// XXX hack until xpidl supports error info directly (bug 13423)
nsCOMPtr<nsIErrorService> errorService = do_GetService(kErrorServiceCID);