修复bug

streaming
Matthew 4 months ago
parent 672159ddc5
commit c4d8bd7f92

@ -283,7 +283,7 @@ public class MicroPhotoService extends Service {
ex.printStackTrace(); ex.printStackTrace();
} }
infoLog("Network Available " + network.toString() + " IP=" + ip); infoLog("Network Available " + network.toString() + " IP=" + ip + " Handle=" + Long.toString(network.getNetworkHandle()));
updateEhernet(mNativeHandle, network.getNetworkHandle(), true); updateEhernet(mNativeHandle, network.getNetworkHandle(), true);
updateDefaultNetwork(); updateDefaultNetwork();
} }
@ -292,7 +292,7 @@ public class MicroPhotoService extends Service {
MicroPhotoService thisService = MicroPhotoService.this; MicroPhotoService thisService = MicroPhotoService.this;
long defaultNetHandle = thisService.getDefaultNetworkHandle(); long defaultNetHandle = thisService.getDefaultNetworkHandle();
if (defaultNetHandle != 0) { if (defaultNetHandle != 0) {
thisService.updateEhernet(thisService.mNativeHandle, defaultNetHandle, true); thisService.updateActiveNetwork(thisService.mNativeHandle, defaultNetHandle, true);
} }
} }
}; };

Loading…
Cancel
Save