Bug 864588 - [B2G] [Leo] [Internet Sharing] USB tethering turns off almost immediately after being turned on. r=vchang

This commit is contained in:
Vincent Liu 2013-05-24 10:38:31 +08:00
parent 1ebdfa9c7f
commit 37474bcb97

View File

@ -874,7 +874,7 @@ NetworkManager.prototype = {
try {
let file = new FileUtils.File(KERNEL_NETWORK_ENTRY + "/" +
this.possibleInterface[i]);
if (file.IsDirectory()) {
if (file.exists()) {
return this.possibleInterface[i];
}
} catch (e) {