Fix the bug net.dns1.pid is same as net.dns2.pid
writePidDns() does not increase the index in case first given dns already exist in the property. Change-Id: I1129d0042929b3ee119160e53cae0e4143c7ea88 Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
This commit is contained in:
committed by
Robert Greenwalt
parent
b9f329f633
commit
48d1833b15
@@ -2179,8 +2179,9 @@ private NetworkStateTracker makeWimaxStateTracker() {
|
||||
String dnsString = dns.getHostAddress();
|
||||
if (changed || !dnsString.equals(SystemProperties.get("net.dns" + j + "." + pid))) {
|
||||
changed = true;
|
||||
SystemProperties.set("net.dns" + j++ + "." + pid, dns.getHostAddress());
|
||||
SystemProperties.set("net.dns" + j + "." + pid, dns.getHostAddress());
|
||||
}
|
||||
j++;
|
||||
}
|
||||
return changed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user