Loading packages/Tethering/src/com/android/server/connectivity/tethering/Tethering.java +4 −1 Original line number Diff line number Diff line Loading @@ -637,7 +637,10 @@ public class Tethering { Context.ETHERNET_SERVICE); synchronized (mPublicSync) { if (enable) { if (mEthernetCallback != null) return TETHER_ERROR_NO_ERROR; if (mEthernetCallback != null) { Log.d(TAG, "Ethernet tethering already started"); return TETHER_ERROR_NO_ERROR; } mEthernetCallback = new EthernetCallback(); mEthernetIfaceRequest = em.requestTetheredInterface(mExecutor, mEthernetCallback); Loading Loading
packages/Tethering/src/com/android/server/connectivity/tethering/Tethering.java +4 −1 Original line number Diff line number Diff line Loading @@ -637,7 +637,10 @@ public class Tethering { Context.ETHERNET_SERVICE); synchronized (mPublicSync) { if (enable) { if (mEthernetCallback != null) return TETHER_ERROR_NO_ERROR; if (mEthernetCallback != null) { Log.d(TAG, "Ethernet tethering already started"); return TETHER_ERROR_NO_ERROR; } mEthernetCallback = new EthernetCallback(); mEthernetIfaceRequest = em.requestTetheredInterface(mExecutor, mEthernetCallback); Loading