Merge "Add a log message if enabling Ethernet tethering if it is already enabled." am: 93a404041d am: 232904e22b am: 46e3a9caf6 am: 41e90912df am: b5aa6f1339
Change-Id: I5d2bbc4fb85d2fa6535dbfc666fba36038a33b2a
This commit is contained in:
@@ -635,7 +635,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);
|
||||
|
||||
Reference in New Issue
Block a user