Reduce extraneous console output from DNS Service when offline [r=dwitte]

This commit is contained in:
Paul O’Shannessy 2010-02-24 11:59:26 -08:00
parent 3d28b28018
commit 6af0de413b

View File

@ -432,7 +432,8 @@ nsDNSService::AsyncResolve(const nsACString &hostname,
res = mResolver;
idn = mIDN;
}
NS_ENSURE_TRUE(res, NS_ERROR_OFFLINE);
if (!res)
return NS_ERROR_OFFLINE;
const nsACString *hostPtr = &hostname;