зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
48015965e8
Коммит
d2866ca59e
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче